Debian Codegraph @

gcc/testsuite/g++.dg/init/for2.C

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 }