// PR c++/16224 namespace io { template int foo(); // { dg-error "" } } using namespace io; template<> int foo(); // { dg-error "" } int a = foo();