summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit73.C
blob: 1d83e3468289cb1b9c7a094924224d432be51e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { 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;	// { dg-error "" } referenced below
}

using namespace N;

template <> class foo<void>; // { dg-error "" } invalid specialization