Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
recurse3.C
blob: f1db7c5cbca04d33c72a8bdff9635d8f59c9fce4 [
file
] [
log
] [
blame
]
// 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
>();
}