// PR c++/91618 // { dg-do link } template 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 }