//PR c++/27667

struct A
{
    template<int> static void foo   () {}
    template<>    static void foo<0>() {}  // { dg-error "explicit" }
}; 


syntax highlighted by Code2HTML, v. 0.9.1