diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/typename8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/typename8.C | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C deleted file mode 100644 index 86881f51127..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C +++ /dev/null @@ -1,27 +0,0 @@ -// Build don't link: - -template < class T > class A -{ -public: - typedef typename T::myT anotherT; // ERROR - undefined type - - anotherT t; // ERROR - undefined type - - A(anotherT _t) { // ERROR - undefined type - t=_t; - } - - anotherT getT() { - return t; - } -}; - -class B : public A< B > // ERROR - forward declaration -{ -public: - typedef int myT; -}; - -int main() { - B b; -} |