An orphaned for loop with a reduction clause causes an ICE. Note that the non-orphaned for loop doesn't.
g++ -v: Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc_svn/configure --enable-languages=c,c++ --prefix=/local_scratch/owe043/gcc_svn Thread model: posix gcc version 4.2.0 20060601 (experimental) compiled with: g++ -save-temps -c -fopenmp foo.cc -- Summary: ICE in build_outer_var_ref, at omp-low.c:585 with openmp Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bowie dot owens at csiro dot au GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27870