[Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 23 16:16:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list