Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / instantiate1.C
blob311344d9451dacee895dc63ae0deb6099f1df560
1 // { dg-do compile }
2 // Origin:
4 // PR c++/6716
5 // ICE in complex class structure when components are incomplete
7 template <class T> struct X {
8   T t;                          // { dg-error "incomplete" }
9 };
11 template <class T> struct Y {
12   X<T> x;                       // { dg-error "instantiated" }
15 template <class T> struct Z {   // { dg-error "declaration" }
16   Y<Z<T> > y;                   // { dg-error "instantiated" }
19 struct ZZ : Z<int>              // { dg-error "instantiated" }