Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / init / error2.C
blob43d24f13b732a5817fef8e92985b46968c832cec
1 /* PR c++/29727 */
2 /* { dg-do compile } */
4 template<int> struct A
6   static int a[1];
7 };
8 template<int N> int A<N>::a[1] = { X:0 }; /* { dg-error "does not allow designated|was not declared|designated initializer for an array" } */
10 void foo()
12   A<0>::a;