/* PR c++/29727 */ /* { dg-do compile } */ template struct A { static int a[1]; }; template int A::a[1] = { X:0 }; /* { dg-error "does not allow designated|was not declared|designated initializer for an array" } */ void foo() { A<0>::a; }