blob: a9c8cf869681faef752808009c483268d3b58f27 [file] [log] [blame]
// { dg-do compile }
// Origin:
// PR c++/6716
// ICE in complex class structure when components are incomplete
template <class T> struct X {
T t; // { dg-error "incomplete" }
};
template <class T> struct Y {
X<T> x; // { dg-message "required" }
};
template <class T> struct Z { // { dg-message "declaration" }
Y<Z<T> > y; // { dg-message "required" }
};
struct ZZ : Z<int>
{
};