* g++.old-deja/g++.ns/template7.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 5 Dec 1998 23:10:15 +0000 (23:10 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 5 Dec 1998 23:10:15 +0000 (23:10 +0000)
From-SVN: r24115

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.ns/template7.C [new file with mode: 0644]

index 16461527d4556fb7a0d1477d6e25a6e38ffee46b..746c5855dd1e67c9ef6ec5d2050454ea53e255ec 100644 (file)
@@ -1,5 +1,7 @@
 1998-12-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.ns/template7.C: New test.
+
        * g++.old-deja/g++.other/expr1.C: New test.
 
        * g++.old-deja/g++.eh/tmpl3.C: New test.
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 (file)
index 0000000..3c85735
--- /dev/null
@@ -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
+}