The following invalid code snippet triggers an ICE since GCC 4.2.0 when compiled with "-fopenmp":
==================================================== struct A { ~A()(); }; void foo() { A a; #pragma omp parallel firstprivate(a) ; } ==================================================== bug.cc:3: error: 'A' declared as function returning a function bug.cc: In function 'void foo()': bug.cc:9: internal compiler error: in get_callee_fndecl, at tree.c:6597 Please submit a full bug report, [etc.] -- Summary: ICE with firstprivate variable with invalid destructor Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, 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=35328