OSDN Git Service

new
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit73.C
1 // Build don't link:
2
3 // by Alexandre Oliva <oliva@dcc.unicamp.br>
4
5 // According to [temp.expl.spec]/2, a template explicit specialization
6 // must be declared in the namespace that contains the declaration of
7 // the template
8
9 namespace N {
10   template <class T> class foo; // ERROR - referenced below
11 }
12
13 using namespace N;
14
15 template <> class foo<void>; // ERROR - invalid specialization