5 // ICE in complex class structure when components are incomplete
7 template <class T> struct X {
8 T t; // { dg-error "incomplete" }
11 template <class T> struct Y {
12 X<T> x; // { dg-message "required" }
15 template <class T> struct Z { // { dg-error "declaration" }
16 Y<Z<T> > y; // { dg-message "required" }