re PR c/9262 (ICE on false case label)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 4 Mar 2003 11:06:32 +0000 (12:06 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 4 Mar 2003 11:06:32 +0000 (11:06 +0000)
commit2ad1815d458820ca80fc82fdd9cb1695388e7f20
tree92460f53d9e91b8dcf0b9b59cd6749d9166388c1
parente2483ef7c73635b42aa871ef48b7d8c7763c0e53
re PR c/9262 (ICE on false case label)

PR c/9262
* c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
(c_finish_case): Rechain the next statements to the SWITCH_STMT.

From-SVN: r63783
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wswitch-default.c
gcc/testsuite/gcc.dg/Wswitch-enum.c
gcc/testsuite/gcc.dg/Wswitch.c
gcc/testsuite/gcc.dg/switch-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/switch-3.c [new file with mode: 0644]