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++/27359] New: ICE with missing initialization of iteration variable in parallel for loop


The following invalid testcase crashes the C++ frontend when compiled
with -fopenmp:

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

bug.cc: In function 'void foo()':
bug.cc:4: internal compiler error: vector VEC(cp_token_position,base) pop
domain error, in cp_lexer_commit_tokens at cp/parser.c:656
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with missing initialization of iteration variable in
                    parallel for loop
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=27359


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