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++/34607] New: ICE with invalid for loop after #pragma omp for


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

=======================================================
void foo()
{
#pragma omp for
  for (int i=; i<2; ++i) ;
}
=======================================================

bug.cc: In function 'void foo()':
bug.cc:4: error: expected primary-expression before ';' token
bug.cc:4: internal compiler error: in c_finish_omp_for, at c-omp.c:241
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with invalid for loop after #pragma omp for
           Product: gcc
           Version: 4.3.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=34607


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