1// PR c++/44609 2// { dg-options -ftemplate-depth=10 } 3 4template<int N> 5void f() 6{ 7 0 = 0; // { dg-error "lvalue required" } 8 f<N+1>(); // { dg-bogus "instantiation depth" } 9} 10 11int main() 12{ 13 f<0>(); 14} 15