blob: 106f573c6253b8c9da52595a396cc73ef3936f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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;
}
using namespace N;
template <> class foo<void>; // ERROR - invalid specialization - XFAIL *-*-*
|