* template2.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 1 Jul 1999 22:13:36 +0000 (22:13 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Thu, 1 Jul 1999 22:13:36 +0000 (22:13 +0000)
From-SVN: r27901

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

index 03f6955dfec8151ca3f0585b49d0b77266436c43..34c1251c1c38328044963c0eabf4b792f094bd61 100644 (file)
@@ -1,5 +1,7 @@
 1999-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * template2.C: New test.
+
        * ns1.C: New test.
 
 1999-07-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/template2.C b/gcc/testsuite/g++.old-deja/g++.oliva/template2.C
new file mode 100644 (file)
index 0000000..2f938e8
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't link:
+
+// Copyright (C) 1999 Free Software Foundation
+
+// by Alexandre Oliva <oliva@dcc.unicamp.br>
+// based on bug report by Gabriel Dos_Reis <Gabriel.Dos_Reis@sophia.inria.fr>
+
+template <template <typename> class C, typename T> class foo {
+  typedef typename C<T>::bar bar;
+  foo(bar);
+};
+
+template <template <typename> class C, typename T> foo<C,T>::foo(bar)
+{} // gets bogus error - C<T> not a class - XFAIL *-*-*