This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35337] New: Broken diagnostic for firstprivate 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: 23 Feb 2008 19:52:41 -0000
- Subject: [Bug c++/35337] New: Broken diagnostic for firstprivate clause
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.
--
Summary: Broken diagnostic for firstprivate clause
Product: gcc
Version: 4.4.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
BugsThisDependsOn: 31748,35244
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35337