A broken diagnostic is issued for the following invalid code snippet since GCC 4.2.0: ==================================================== struct A {}; void foo() { #pragma omp parallel firstprivate(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 'firstprivate' This is related to PR31748 and PR35244.
Testing a patch.
Subject: Bug 35337 Author: jakub Date: Mon Mar 10 19:43:16 2008 New Revision: 133086 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133086 Log: PR c++/35337 * semantics.c (finish_omp_clauses): Use %qD instead of %qE for DECL_P in not a variable and appears more than once error messages. * g++.dg/gomp/pr35337.C: New test. Added: trunk/gcc/testsuite/g++.dg/gomp/pr35337.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog
Subject: Bug 35337 Author: jakub Date: Mon Mar 10 20:53:35 2008 New Revision: 133090 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133090 Log: PR c++/35337 * semantics.c (finish_omp_clauses): Use %qD instead of %qE for DECL_P in not a variable and appears more than once error messages. * g++.dg/gomp/pr35337.C: New test. Added: branches/gcc-4_3-branch/gcc/testsuite/g++.dg/gomp/pr35337.C Modified: branches/gcc-4_3-branch/gcc/cp/ChangeLog branches/gcc-4_3-branch/gcc/cp/semantics.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
Fixed.