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