// { dg-do compile } // Origin: Giovanni Bajo // Two-phase name lookup for address of member: // Detecting overloading function error during parsing struct S { int f(char); int f(int); }; template struct X {}; template struct Foo { X<&S::f> x; // { dg-error "convert|no matches" } };