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