1 //PR c++/27667
2 
3 struct A
4 {
fooA5     template<int> static void foo   () {}
6     template<>    static void foo<0>() {}  // { dg-error "31:template-id .foo<0>. in declaration|explicit specialization" }
7 };
8