☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
recurse3.C
☽
☼
gcc/testsuite/g++.dg/template/recurse3.C
code
plain
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
}