// PR c++/116710 // { dg-do compile { target c++11 } } template struct A : T {}; template void f(void (*)(T &), typename A::type * = 0); void f(...); void g(int &&); void q() { f(g); } // OK template struct B { operator B(); }; template void h(B); int main() { B b; h(b); // { dg-error "no match" } }