// PR c++/5533 // { dg-do compile } namespace N { template struct A{}; } template void foo(T) {} void bar() { foo(N::A); // { dg-error "" } }