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++/31748] New: [4.2/4.3 regression] bad diagnostic for invalid private clause


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


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