Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
>();
}