This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12198] New: Miscompilation of case ranges
- From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2003 21:56:20 -0000
- Subject: [Bug optimization/12198] New: Miscompilation of case ranges
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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);
}