blob: f8ceaf790c44846945184d42d979f562df110adc [file] [log] [blame]
// { dg-do assemble }
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// According to [temp.expl.spec]/2, a template explicit specialization
// must be declared in the namespace that contains the declaration of
// the template
namespace N {
template <class T> class foo;
}
using namespace N;
template <> class foo<void>; // { dg-error "" } invalid specialization