This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2004 16:16:15 -0000
- Subject: [Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement
- References: <20041123151338.18628.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-23 16:16 -------
Works also with int:
========================
int i;
int main()
{
for (;;)
{
switch (i)
{
case 0:
case 1:
return 1;
case 2:
case 3:
return 0;
case 5:
--i;
}
}
}
========================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18628