namespace N { template struct A { template A(A); }; } void foo(N::A); void bar() { foo(N::A); // { dg-error "" } }