int a;
void f(void) { int b[(__SIZE_TYPE__)&a]; }
yields
t.c: In function 'f':
t.c:2: internal compiler error: in tree_low_cst, at tree.c:4413
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Likewise if the size is 1/0. Related to but not the same as bug 25161 and bug
27020 (both involve VLAs with TREE_CONSTANT array sizes, but in this case the
code is valid).
--
Summary: [4.0/4.1/4.2 Regression] ICE with TREE_CONSTANT VLA
sizes inside functions
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27893