This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13364] New: [tree-ssa] ICE with sized arrays
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2003 02:37:13 -0000
- Subject: [Bug optimization/13364] New: [tree-ssa] ICE with sized arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Try to compile this at -O1 or above:
enum machine_mode {
MAX_MACHINE_MODE1,
MAX_MACHINE_MODE };
enum insn_code {
CODE_FOR_nothing1,
CODE_FOR_nothing };
enum insn_code fixtab[(int) MAX_MACHINE_MODE][(int) MAX_MACHINE_MODE][2];
enum insn_code fixtrunctab[(int) MAX_MACHINE_MODE][(int) MAX_MACHINE_MODE][2];
void
init_optabs ()
{
int i, j;
enum insn_code *p;
for (p = fixtab[0][0];
p < fixtab[0][0] + sizeof fixtab / sizeof (fixtab[0][0][0]);
p++)
*p = CODE_FOR_nothing;
for (p = fixtrunctab[0][0];
p < fixtrunctab[0][0] + sizeof fixtrunctab / sizeof (fixtrunctab[0][0][0]);
p++)
*p = CODE_FOR_nothing;
}
You will get:
new.c: In function `init_optabs':
new.c:13: internal compiler error: in size_binop, at fold-const.c:1585
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is related to bug 13363.
--
Summary: [tree-ssa] ICE with sized arrays
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13364