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/35439] New: ICE using threadprivate for broken variable


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


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