[Bug optimization/12198] New: Miscompilation of case ranges
pbrook at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 6 21:56:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12198
Summary: Miscompilation of case ranges
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: wrong-code
Severity: critical
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pbrook at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Switch statements containing the "Case Ranges" extension are miscompiled. The
following test fails when i != 1.
int main()
{
int i;
i = 2;
switch (i)
{
case 1 ... 5:
goto L1;
default:
abort ();
goto L1;
}
L1:
exit(0);
}
More information about the Gcc-bugs
mailing list