[Bug c++/36023] New: [4.1/4.3/4.4 regression] ICE with cast to variable-sized object
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 23 06:44:00 GMT 2008
The following code snippet triggers an ICE on the 4.3 branch and mainline:
========================
void foo(int i)
{
(int [i]) { 1 };
}
========================
bug.cc: In function 'void foo(int)':
bug.cc:3: internal compiler error: in tree_low_cst, at tree.c:4879
Please submit a full bug report, [etc.]
This is a regression on the 4.3 branch as 4.3.0 is not affected.
The ICE also appears in GCC 4.1.x, but is is not present in GCC 4.2.x.
--
Summary: [4.1/4.3/4.4 regression] ICE with cast to variable-sized
object
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36023
More information about the Gcc-bugs
mailing list