Debian Codegraph @

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

raw
1 // PR c++/91618
2 // { dg-do link }
3
4 template <class T> int f(T t)
5 { return t.i; }
6
7 class A {
8 friend int ::f(A);
9 int i;
10 };
11
12 int main()
13 {
14 f(A()); // link error, trying to call non-template function
15 }