* g++.old-deja/g++.pt/lookup6.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 1 Dec 1998 08:08:59 +0000 (08:08 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Tue, 1 Dec 1998 08:08:59 +0000 (08:08 +0000)
From-SVN: r24024

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

index 57935f398adf74495d4ee52a56f694dd0faafd0d..fac365ebb93e95a70e1d17cfe6651dae598a6d78 100644 (file)
@@ -1,3 +1,7 @@
+1998-12-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * g++.old-deja/g++.pt/lookup6.C: New test.
+
 1998-11-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * g++.old-deja/g++.pt/explicit76.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup6.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup6.C
new file mode 100644 (file)
index 0000000..0531109
--- /dev/null
@@ -0,0 +1,15 @@
+// Build don't link:
+
+// Based on bug report by Miniussi <miniussi@ilog.fr>
+
+class t {};
+
+template <class T> struct A { typedef T t; typedef T u; };
+
+template <class T> struct B : public A<T> {
+  // according to [temp.dep.type], `t' and `u' cannot be dependent types,
+  // and so there's no reason to delay lookup to specialization time.
+  void f(t p); // this is ::t [temp.dep]/3
+  void f(typename A<T>::t p); // gets bogus error - redefinition - XFAIL *-*-*
+  void g(u p); // ERROR - unknown type name - XFAIL *-*-*
+};