blob: b499909076d358088ba1f0be2b64bb8d54789aed [file] [log] [blame]
// 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
}