1 /* { dg-do compile } */ 2 3 template<int> struct A 4 { 5 static const int i=x; /* { dg-error "was not declared in this scope" } */ 6 static const int j, k; 7 }; 8 9 template<int N> const int A<N>::j = i; 10 template<int N> const int A<N>::k = j; 11 12 A<0> a; 13