1// { dg-do compile }
2// PR 16012: Got the scope of I incorrect in templates only.
3
4template<int> void foo()
5{
6   for (int i=0 ;;) ;
7   int i;
8}
9
10void bar()
11{
12  foo<0>();
13}
14