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