The following invalid code snippet triggers an ICE since GCC 4.2.0 when
compiled with "-fopenmp":

================================
void x[1];
#pragma omp threadprivate(x)
================================

bug.c:1: error: declaration of 'x' as array of voids
bug.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in c_parser_omp_threadprivate, at c-parser.c:7971
Please submit a full bug report, [etc.]

Related to PR35428.


-- 
           Summary: ICE using threadprivate for broken variable
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=35439

Reply via email to