// { dg-do compile } // Origin: Giovanni Bajo // Two-phase name lookup for address of member: // Detecting error during parsing struct S { char i; }; template struct X {}; template struct Foo { X<&S::i> x; // { dg-error "5:could not convert" "" { target c++17 } } // { dg-error "could not convert" "" { target c++14_down } .-1 } };