(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
recurse3.C
// PR c++/44609
// { dg-options -ftemplate-depth=10 }

template<int N>
void f()
{
  0 = 0;			// { dg-error "lvalue required" }
  f<N+1>();			// { dg-bogus "instantiation depth" }
}

int main()
{
  f<0>();
}