Debian Codegraph @

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

raw
1 // PR c++/28111
2 // { dg-do compile }
3
4 template<typename> void foo();
5
6 template<typename T> struct A
7 {
8 friend void foo<>(typename T::X); // { dg-error "not a class" }
9 };
10
11 A<int> a;