public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37533] New: ICE with parallel for loop
@ 2008-09-15 21:52 reichelt at gcc dot gnu dot org
2008-09-20 3:07 ` [Bug c++/37533] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-15 21:52 UTC (permalink / raw)
To: gcc-bugs
The following code snippet triggers an ICE since GCC 4.2.0 when compiled
with "-O2 -fopenmp":
======================================
template<int> void foo()
{
#pragma omp parallel for
for (int i=""; i<4; ++i) ;
}
void bar()
{
foo<0>();
}
======================================
bug.cc: In function 'void _Z3fooILi0EEvv.omp_fn.0(void*)':
bug.cc:4: internal compiler error: in fold_convert, at fold-const.c:2528
Please submit a full bug report, [etc.]
Without "-fopenmp" the code is rejected:
bug.cc: In function 'void foo() [with int <anonymous> = 0]':
bug.cc:9: instantiated from here
bug.cc:4: error: invalid conversion from 'const char*' to 'int'
--
Summary: ICE with parallel for loop
Product: gcc
Version: 4.4.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=37533
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37533] ICE with parallel for loop
2008-09-15 21:52 [Bug c++/37533] New: ICE with parallel for loop reichelt at gcc dot gnu dot org
@ 2008-09-20 3:07 ` pinskia at gcc dot gnu dot org
2008-09-23 18:59 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-20 3:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-20 03:06 -------
Well this is an accepts invalid code since it "compiles" at -O0 when it should
not. The ICE is during scev analysis.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2008-09-20 03:06:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37533
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37533] ICE with parallel for loop
2008-09-15 21:52 [Bug c++/37533] New: ICE with parallel for loop reichelt at gcc dot gnu dot org
2008-09-20 3:07 ` [Bug c++/37533] " pinskia at gcc dot gnu dot org
@ 2008-09-23 18:59 ` jakub at gcc dot gnu dot org
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-23 18:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-09-23 18:58 -------
Subject: Bug 37533
Author: jakub
Date: Tue Sep 23 18:57:18 2008
New Revision: 140613
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140613
Log:
PR c++/37533
* semantics.c (finish_omp_for): If processing_template_decl, just build
MODIFY_EXPR for init instead of calling cp_build_modify_expr.
* g++.dg/gomp/pr37533.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr37533.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37533
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37533] ICE with parallel for loop
2008-09-15 21:52 [Bug c++/37533] New: ICE with parallel for loop reichelt at gcc dot gnu dot org
2008-09-20 3:07 ` [Bug c++/37533] " pinskia at gcc dot gnu dot org
2008-09-23 18:59 ` jakub at gcc dot gnu dot org
@ 2008-09-23 19:04 ` jakub at gcc dot gnu dot org
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-23 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-09-23 19:03 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37533
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/37533] ICE with parallel for loop
2008-09-15 21:52 [Bug c++/37533] New: ICE with parallel for loop reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
@ 2008-09-23 19:04 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-23 19:04 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-09-20 03:06:23 |2008-09-23 19:02:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37533
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-23 19:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-15 21:52 [Bug c++/37533] New: ICE with parallel for loop reichelt at gcc dot gnu dot org
2008-09-20 3:07 ` [Bug c++/37533] " pinskia at gcc dot gnu dot org
2008-09-23 18:59 ` jakub at gcc dot gnu dot org
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
2008-09-23 19:04 ` jakub at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).