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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error61.C
blob
199e1aa721cfa19579f64b0684eebe88f3133510
1
// PR c++/85258
2
// { dg-do compile { target c++11 } }
3
4
template<int> void foo()
5
{
6
int x[8];
7
for (int& i, j : x) // { dg-error "multiple" }
8
i = 0; // { dg-error "local variable" }
9
}
10
11
void bar()
12
{
13
foo<0>();
14
}