1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// PR c++/18747 template<> int i; // { dg-error "template" } struct A { static int i; }; template<> int A::i; // { dg-error "template" } template <class T> struct B { static T i; }; template<> template <> int B<int>::i; // { dg-error "should be 1" }