From: Alexandre Oliva Date: Tue, 1 Dec 1998 08:08:59 +0000 (+0000) Subject: * g++.old-deja/g++.pt/lookup6.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=688d56bc9226567cb9c30655c471cedfbd5e69b9;p=gcc.git * g++.old-deja/g++.pt/lookup6.C: New test. From-SVN: r24024 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57935f398ad..fac365ebb93 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +1998-12-01 Alexandre Oliva + + * g++.old-deja/g++.pt/lookup6.C: New test. + 1998-11-27 Alexandre Oliva * 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 index 00000000000..053110990b9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/lookup6.C @@ -0,0 +1,15 @@ +// Build don't link: + +// Based on bug report by Miniussi + +class t {}; + +template struct A { typedef T t; typedef T u; }; + +template struct B : public A { + // 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 p); // gets bogus error - redefinition - XFAIL *-*-* + void g(u p); // ERROR - unknown type name - XFAIL *-*-* +};