blob: 1dd0f69ab22de8ec1bdc099ad0053164988d7a3f [file] [log] [blame]
// Build don't link:
// 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; // ERROR - referenced below
}
using namespace N;
template <> class foo<void>; // ERROR - invalid specialization