(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
pr16564.C
// { dg-do compile }
template<typename> struct A
{
  A<A> a; /* { dg-error "depth" } */
  A() {}
};

A<int> a;

// { dg-prune-output "compilation terminated" }