// PR c++/28999 namespace N { template void foo(); } template struct A { friend void typename N::foo<0>(); // { dg-error "type|expected" } };