A bad diagnostic is issued on mainline and the 4.2 branch for the following code snippet (compile with -fopenmp):
======================== struct A; void foo() { #pragma omp parallel private(A) ; } ======================== bug.cc: In function 'void foo()': bug.cc:5: error: '#'type_decl' not supported by dump_expr#<expression error>' is not a variable in clause 'private' -- Summary: [4.2/4.3 regression] bad diagnostic for invalid private clause Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic, 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=31748