// PR c++/99009 // { dg-do compile { target c++17 } } template struct B { B(int = A()) {} template struct A; }; template struct X { template struct Y; X() { Y y; }; };