This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11452] New: [tree-ssa] ICE with variable-sized arrays
- 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: 7 Jul 2003 11:29:10 -0000
- Subject: [Bug c/11452] New: [tree-ssa] ICE with variable-sized arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11452
Summary: [tree-ssa] ICE with variable-sized arrays
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P1
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
Compiling the following code snippet (from PR 8730)
---------------------------snip here-------------------------
void baz(int i);
void foo(int i, int A[i+1])
{
int j=A[i];
void bar() { baz(A[i]); }
}
---------------------------snip here-------------------------
with gcc 3.5-tree-ssa 20030707 (merged 20030525) using the
command line "gcc -c" causes the following ICE:
bPR8730B.c: In function `bar':
bPR8730B.c:6: internal compiler error: tree check: expected class 'd', have '1'
(non_lvalue_expr) in store_parm_decls, at c-decl.c:6152
Please submit a full bug report, [etc.]