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