diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ns/template7.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ns/template7.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template7.C b/gcc/testsuite/g++.old-deja/g++.ns/template7.C new file mode 100644 index 00000000000..3c857355a50 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/template7.C @@ -0,0 +1,13 @@ +// Build don't link: + +// crash test - XFAIL *-*-* + +// Based on bug report by Eric NICOLAS <nicolas@bnp-eng.remcomp.com> + +namespace foo { + template<class F> struct bar {}; +} + +void baz() { + foo::bar(); // ERROR - template used as expression +} |