1 template <class R> 2 struct A { 3 static int _test; // { dg-error "" } 4 static int _test; // { dg-error "" } 5 }; 6 template <class R> int A<R>::_test = 0; 7 struct B : public A <int> { }; 8