re PR c++/55942 ([C++11] sorry, unimplemented: calling a member function of the object being constructed in a constant expression)
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/55942 * g++.dg/cpp0x/constexpr-55942.C: New. From-SVN: r217719
This commit is contained in:
parent
bebcdc6742
commit
1b85e4b23b
@ -1,3 +1,8 @@
|
||||
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/55942
|
||||
* g++.dg/cpp0x/constexpr-55942.C: New.
|
||||
|
||||
2014-11-18 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR sanitizer/63866
|
||||
|
11
gcc/testsuite/g++.dg/cpp0x/constexpr-55942.C
Normal file
11
gcc/testsuite/g++.dg/cpp0x/constexpr-55942.C
Normal file
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user