1// PR c++/19809 2 3template<int i> 4struct n{ 5 friend void foo(){ } // { dg-error "defin" } 6}; 7 8int main(){ 9 n<1> n1; 10 n<2> n2; 11} 12