This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27893] New: [4.0/4.1/4.2 Regression] ICE with TREE_CONSTANT VLA sizes inside functions
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2006 16:55:59 -0000
- Subject: [Bug c/27893] New: [4.0/4.1/4.2 Regression] ICE with TREE_CONSTANT VLA sizes inside functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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