template struct A { static int _test; // { dg-message "" } static int _test; // { dg-error "" } }; template int A::_test = 0; struct B : public A { };