Commit e3017e52 by Marek Polacek Committed by Marek Polacek

re PR c++/71166 (ICE with nested constexpr/initializer)

	PR c++/71166
	* g++.dg/cpp0x/constexpr-array18.C: New test.

From-SVN: r244450
parent aa1ba96b
2017-01-13 Marek Polacek <polacek@redhat.com>
PR c++/71166
* g++.dg/cpp0x/constexpr-array18.C: New test.
2017-01-13 Janne Blomqvist <jb@gcc.gnu.org> 2017-01-13 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/78534 PR fortran/78534
......
// PR c++/71166
// { dg-do compile { target c++11 } }
struct Foo { int value; };
constexpr Foo MakeFoo() { return Foo{0}; }
struct Bar {
Foo color = MakeFoo();
};
struct BarContainer {
Bar array[1];
};
Foo X ()
{
return MakeFoo ();
}
void Foo() {
new BarContainer();
}
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