The following testcase causes an ICE in the C++ frontend when compiled with -fopenmp:
=================== void foo() { x; L: goto L; } =================== bug.cc: In function 'void foo()': bug.cc:3: error: 'x' was not declared in this scope bug.cc:4: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in decl_jump_unsafe, at cp/decl.c:2153 Please submit a full bug report, [etc.] -- Summary: [gomp] ICE in decl_jump_unsafe, at cp/decl.c:2153 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, openmp Severity: normal Priority: P2 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=24452