blob: d716247a5da8ec03db768f393f13745bd41ec1d6 [file] [log] [blame]
// PR c++/90572
template <typename T> struct C {
friend C(T::fn)();
friend C(T::fn)(int);
friend C(T::fn)(int, int);
};
struct X { };
template<typename T>
struct B {
friend X(T::fn)();
friend X(T::fn)(int);
friend X(T::fn)(int, int);
};