Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / typename8.C
blob6eb818b394728c3fe1115eecf945fb94908b31c8
1 // { dg-do assemble  }
3 template < class T > class A
5 public:
6   typedef typename T::myT anotherT; // { dg-error "" } undefined type
8   anotherT t; // { dg-error "" } undefined type 
10   A() { }
11   A(anotherT _t) { // { dg-error "" } undefined type
12     t=_t;
13   }
15   anotherT getT() { // { dg-error "" } undefined type
16     return t;
17   }
20 class B : public A< B > // { dg-error "" } forward declaration
22 public:
23   typedef int myT;
26 int main() {
27   B b;