[Bug middle-end/18005] [4.0 Regression] ICE with simple loop
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 16 15:37:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list