Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / template / instantiate1.C
blob0c739d0f61550a5724bbebc8e434af679dc6ad13
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>