☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
init
/
for2.C
☽
☼
gcc/testsuite/g++.dg/init/for2.C
code
plain
raw
1
// { dg-do compile }
2
// PR 16012: Got the scope of I incorrect in templates only.
3
4
template<int> void foo()
5
{
6
for (int i=0 ;;) ;
7
int i;
8
}
9
10
void bar()
11
{
12
foo<0>();
13
}