From: paolo Date: Tue, 18 Nov 2014 16:02:58 +0000 (+0000) Subject: 2014-11-18 Paolo Carlini X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=936dd2ee956fdf157eb7cbddb2e5a0e7a03c545d;p=thirdparty%2Fgcc.git 2014-11-18 Paolo Carlini PR c++/55942 * g++.dg/cpp0x/constexpr-55942.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217719 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca77cc0035d0..840faa9914af 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Paolo Carlini + + PR c++/55942 + * g++.dg/cpp0x/constexpr-55942.C: New. + 2014-11-18 Marek Polacek PR sanitizer/63866 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-55942.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-55942.C new file mode 100644 index 000000000000..81f2f34ff4aa --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-55942.C @@ -0,0 +1,11 @@ +// PR c++/55942 +// { dg-do compile { target c++11 } } + +struct A +{ + constexpr explicit A(bool b) : o{flip(b)} { } + + constexpr bool flip(bool b) { return !b; } + + bool o; +};