This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/10336: [3.4 regression] ICE with -Wunreachable-code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]