Debian Codegraph @

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

raw
1 //PR c++/27821
2
3 struct A
4 {
5 template<void (A::*)()> struct B {};
6 void ::foo(); // { dg-error "10:invalid use" }
7 B<&A::foo> b; // { dg-error "'foo' is not a member of 'A'|template argument" }
8 };
9