This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18005] [4.0 Regression] ICE with simple 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: 16 Oct 2004 15:37:47 -0000
- Subject: [Bug middle-end/18005] [4.0 Regression] ICE with simple loop
- References: <20041015052603.18005.aj@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-16 15:37 -------
Here's an even shorter example. Just compile with "-O".
============================================
const int n = 2;
void foo()
{
int a[1][n], i;
for (i=0; i<2; ++i)
if (a[0][i]) return;
}
============================================
Sebastian, the problem appeared with your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg00852.html
Could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
GCC build triplet|x86_64-linux-gnu |
GCC host triplet|x86_64-linux-gnu |
GCC target triplet|x86_64-linux-gnu |
Keywords| |monitored
Summary|[4.0 Regression] ICE in |[4.0 Regression] ICE with
|fold-const.c/fold |simple loop
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005