[Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 3 20:24:00 GMT 2008
The following (IMHO valid) code snippet triggers an ICE since GCC 4.1.0:
================================
typedef int* X;
typedef int* Y;
X (*p)[][0];
Y (*q)[][0];
typeof(*(0 ? p : q)) x = { 0 };
================================
bug.c:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The code compiled fine with GCC 2.95.3, crashed GCC 3.0.0, 3.0.1,
and was rejected by GCC 3.0.2 - 4.0.4.
--
Summary: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary
operator
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-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=35433
More information about the Gcc-bugs
mailing list