// { dg-do compile } // Origin: // PR c++/10126: Handle ptmf default conversions while matching a template // argument struct B { int I () const; int I (); }; struct D : B {}; template int Get(); int main () { Get<&B::I>(); // { dg-error "no matching function" } Get<&D::I>(); // { dg-error "no matching function" } }