This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31748] New: [4.2/4.3 regression] bad diagnostic for invalid private clause
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2007 10:54:39 -0000
- Subject: [Bug c++/31748] New: [4.2/4.3 regression] bad diagnostic for invalid private clause
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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