1 // PR c++/47388 2 // { dg-do compile } 3 // { dg-options "-fno-for-scope -Wno-deprecated" } 4 5 template <int> 6 void foo()7foo () 8 { 9 int i; 10 for (i = 0; i < 16; i++) 11 ; 12 for (int j = 0; j < 16; j++) 13 ; 14 if (j != 16) 15 for (;;) 16 ; 17 } 18 19 void bar()20bar () 21 { 22 foo <0> (); 23 } 24