☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error61.C
☽
☼
gcc/testsuite/g++.dg/parse/error61.C
code
plain
raw
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|reference" }
8
i = 0;
9
}
10
11
void bar()
12
{
13
foo<0>();
14
}