1 // PR c++/86917 2 // { dg-do compile { target c++11 } } 3 4 struct A 5 { AA6 constexpr A () : c (0) {} 7 static const A z; 8 unsigned c; 9 }; 10 11 struct B 12 { 13 typedef A W[4]; // { dg-error "paren" "" { target { ! c++20 } } .+1 } BB14 constexpr B () : w ({ A::z, A::z, A::z, A::z }) {} // { dg-error "constant|could not convert" } 15 W w; 16 }; 17 18 struct C 19 { 20 C (); 21 B w[1]; 22 }; 23 C()24C::C () { } 25