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