// { dg-do compile } // Contributed by David Abrahams // PR c++/14143: Koenig lookup should only look into template arguments only // if the argument is a template-id. namespace fu { template struct bar { struct baz {}; }; } namespace axe { struct handle {}; template char* f(T&); } namespace test { template int f(T const&); template int g(T x) { return f(x); } int x = g(fu::bar::baz()); }