// { dg-do compile } // Origin: // PR c++/6716 // ICE in complex class structure when components are incomplete template struct X { T t; // { dg-error "incomplete" } }; template struct Y { // { dg-error "instantiated" } X x; }; template struct Z { // { dg-error "instantiated|declaration" } Y > y; }; struct ZZ : Z { // { dg-error "instantiated" } };