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
c++: Improve errors parsing a braced list [PR101232]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
recurse3.C
blob
70c6152d0633af1d54bec483a96560d87577cf77
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
}