repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
recurse3.C
blob
f1db7c5cbca04d33c72a8bdff9635d8f59c9fce4
1
// PR c++/44609
2
// { dg-options -ftemplate-depth=10 }
3
4
template<int N>
5
void f()
6
{
7
0 = 0; // { dg-error "lvalue required" }
8
f<N+1>(); // { dg-bogus "instantiation depth" }
9
}
10
11
int main()
12
{
13
f<0>();
14
}