/* { dg-do compile } */ template struct A { static const int i=x; /* { dg-error "was not declared in this scope" } */ static const int j, k; }; template const int A::j = i; template const int A::k = j; A<0> a;