This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/35337] New: Broken diagnostic for firstprivate clause


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]