This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22439] [4.0/4.1 regression] ICE with char array: size_binop, at fold-const.c:1637
- 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: 12 Jul 2005 13:40:34 -0000
- Subject: [Bug c/22439] [4.0/4.1 regression] ICE with char array: size_binop, at fold-const.c:1637
- References: <20050712130521.22439.etienne_lorrain@yahoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-12 13:40 -------
Confirmed. Reduced testcase:
===========================
char foo(unsigned n)
{
char c[1][n];
return c[0][0];
}
===========================
The ICE appeared with gcc 4.0.0.
The code compiles fine if one replaces unsigned with int, or char with int.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-07-12 13:40:31
date| |
Summary|ICE with unsigned char |[4.0/4.1 regression] ICE
|array: size_binop, at fold- |with char array: size_binop,
|const.c:1637 |at fold-const.c:1637
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22439