This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/10336: [3.4 regression] ICE with -Wunreachable-code
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 7 Apr 2003 12:00:30 -0000
- Subject: c/10336: [3.4 regression] ICE with -Wunreachable-code
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>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 at igpm dot rwth-aachen dot 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: