// PR c++/28058

template<int> struct A
{
  A() {}
};

A<0> a;

template<> A<0>::A() {} // { dg-error "specialization|invalid" } 


syntax highlighted by Code2HTML, v. 0.9.1