This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2006 20:33:59 -0000
- Subject: [Bug c++/27359] New: ICE with missing initialization of iteration variable in parallel for loop
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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