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