The following invalid code snippet causes an ICE since GCC 4.0.1: =============== int x[1/0]; ===============
bug.c:1: warning: division by zero bug.c:1: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] Before we got: bug.c:1: warning: division by zero bug.c:1: error: storage size of 'x' isn't constant -- Summary: [4.0/4.1/4.2 regression] ICE on invalid array size Product: gcc Version: 4.2.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=27020