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/27358] New: ICE with invalid variable after #pragma omp parallel


The following invalid testcase crashes the C frontend with "-fopenmp":

=======================
void foo(ERROR i)
{
#pragma omp parallel
  i=0;
}
=======================

bug.c:1: error: expected ')' before 'i'
bug.c:3: internal compiler error: in c_parser_consume_token, at c-parser.c:639
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with invalid variable after #pragma omp parallel
           Product: gcc
           Version: 4.2.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=27358


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