On 11/03/2014 05:27 AM, Markus Trippelsdorf wrote:
BTW both EDG and clang reject g++.dg/template/spec17.C:

namespace io {
   template <typename> int foo();
}
using namespace io;
template<> int foo<int>();

But I think it is a reasonable extension to accept it.

We should reject it, too. We can only leave out the namespace qualification with inline namespaces.

+// { dg-options "-pedantic -pedantic-errors" }

You shouldn't need these dg-options lines; if a testcase has no dg-options line, -pedantic-errors is the default.

Jason

Reply via email to