1 2 3 4 5 6 7 8 9 10 11
// PR c++/28999 namespace N { template<int> void foo(); } template<int> struct A { friend void typename N::foo<0>(); // { dg-error "type|expected" } };