Commit 1b85e4b2 by Paolo Carlini Committed by Paolo Carlini

re PR c++/55942 ([C++11] sorry, unimplemented: calling a member function of the…

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
parent bebcdc67
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
......
// 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;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment