Debian Codegraph @

gcc/testsuite/g++.dg/template/crash45.C

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