gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem2.C
Jason Merrill a25b76d802 re PR c++/61661 (Bogus error: ‘const Outer::Foo{&Outer::Bar}’ is not a constant expression)
PR c++/61661
	* semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR.

From-SVN: r212439
2014-07-10 17:48:26 -04:00

13 lines
183 B
C

// PR c++/61661
// { dg-do compile { target c++11 } }
struct Outer {
void Bar();
struct Foo {
void (Outer::*ptr)() ;
};
static constexpr Foo foo = { &Outer::Bar };
};