Debian Codegraph @

gcc/testsuite/g++.dg/template/recurse3.C

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