1 // PR c++/29728
2 
foo()3 template<int> void foo()
4 {
5   int a[] = { X: 0 }; // { dg-error "designated initializer" }
6 }
7