c/10336: [3.4 regression] ICE with -Wunreachable-code
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Mon Apr 7 12:06:00 GMT 2003
>Number: 10336
>Category: c
>Synopsis: [3.4 regression] ICE with -Wunreachable-code
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Apr 07 12:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: reichelt@igpm.rwth-aachen.de
>Release: gcc 3.4-20030404
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
The reduced testcase for the switch -Wunreachable-code
from PR 8828 now causes an ICE on mainline:
Just compile with "gcc -c -Wunreachable-code"
---------------------snip here-------------------------
void foo(int i)
{
switch(i) {
case 0:
break;
case 1:
break;
}
}
---------------------snip here-------------------------
The bug was introduced on April 3rd or 4th.
>How-To-Repeat:
gcc -c -Wunreachable-code
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list