diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1998-12-01 08:08:59 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@gcc.gnu.org> | 1998-12-01 08:08:59 +0000 |
commit | 688d56bc9226567cb9c30655c471cedfbd5e69b9 (patch) | |
tree | 49236159d112b15a24263bfddd81f6ad1e025138 | |
parent | 5eff2ed5e20470cef3afe3d76f4fdd8fca2d5ff7 (diff) | |
download | gcc-688d56bc9226567cb9c30655c471cedfbd5e69b9.zip gcc-688d56bc9226567cb9c30655c471cedfbd5e69b9.tar.gz gcc-688d56bc9226567cb9c30655c471cedfbd5e69b9.tar.bz2 |
* g++.old-deja/g++.pt/lookup6.C: New test.
From-SVN: r24024
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/lookup6.C | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57935f3..fac365e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..0531109 --- /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 <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 *-*-* +}; |