[Bug c/11452] New: [tree-ssa] ICE with variable-sized arrays
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 7 11:29:00 GMT 2003
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.]
More information about the Gcc-bugs
mailing list