1 // PR c++/34491 2 3 template<typename> struct A; 4 5 template<0> struct A<int> // { dg-error "expected|template|anonymous" } 6 { 7 static const int i = 0; 8 }; 9 10 int n = A<int>::i; // { dg-error "incomplete type" } 11