// PR c++/47511 namespace N { template bool g( T ) { return true; } struct A { }; } template void f(const T&) { N::A x; g(x) ; }