diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit73.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/explicit73.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit73.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit73.C new file mode 100755 index 0000000..106f573 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit73.C @@ -0,0 +1,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 *-*-* |