1 // PR c++/71166 2 // { dg-do compile { target c++11 } } 3 4 struct Foo { int value; }; 5 MakeFoo()6constexpr Foo MakeFoo() { return Foo{0}; } 7 8 struct Bar { 9 Foo color = MakeFoo(); 10 }; 11 12 struct BarContainer { 13 Bar array[1]; 14 }; 15 X()16Foo X () 17 { 18 return MakeFoo (); 19 } 20 Foo()21void Foo() { 22 new BarContainer(); 23 } 24