blob: 0f2d86e77d837e69562a748f0c39db3ec42b9e92 [file] [log] [blame]
// 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();
}