// { dg-do compile } template struct A { A a; /* { dg-error "depth" } */ A() {} }; A a; // { dg-prune-output "compilation terminated" }