* g++.old-deja/g++.pt/friend38.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 26 Nov 1998 20:58:48 +0000 (20:58 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Thu, 26 Nov 1998 20:58:48 +0000 (20:58 +0000)
From-SVN: r23916

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

index f90d895cf38a6ab67dc99d0d053b7962dcb5ee53..8361b1c985789b084745c47e3392e1af04da0bd7 100644 (file)
@@ -1,5 +1,7 @@
 1998-11-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.pt/friend38.C: New test.
+
        * g++.old-deja/g++.ns/crash2.C: New test.
 
        * g++.old-deja/g++.pt/defarg8.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend38.C b/gcc/testsuite/g++.old-deja/g++.pt/friend38.C
new file mode 100644 (file)
index 0000000..41c7714
--- /dev/null
@@ -0,0 +1,10 @@
+// Build don't link:
+
+// Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>
+
+// crash test - XFAIL *-*-*
+
+template<class P> struct foo {
+  typedef P parent_type;
+  friend parent_type; // ERROR - template parameters cannot be friends
+};