The following invalid code snippet triggers an ICE on mainline when compiled with "-fopenmp":
======================================== template<int> void foo() { #pragma omp parallel for for (auto i = i = 0; i<4; ++i) ; } void bar() { foo<0>(); } ======================================== bug.cc: In function 'void foo() [with int <anonymous> = 0]': bug.cc:9: instantiated from here bug.cc:4: internal compiler error: in type_unification_real, at cp/pt.c:12288 Please submit a full bug report, [etc.] -- Summary: [4.4 regression] ICE with invalid use of auto in parallel for-loop Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored, openmp Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38639