1// PR c++/26365 2 3struct A {}; 4 5namespace N 6{ 7 template<int> void foo(); 8} 9 10void bar(A *p) 11{ 12 p->N::foo<0>; // { dg-error "not a class member" } 13} 14