This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17026] New: Error at last empty case in switch block.
- From: "do8896 at db dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2004 13:46:12 -0000
- Subject: [Bug c/17026] New: Error at last empty case in switch block.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC misunderstanding empty case in switch, such as:
switch(hmm)
{
case 0:
do_smth();
case 1: //<-- gcc stops here
}
or
switch(hmm)
{
case 0:
do_smth();
default: //<-- gcc stops here
}
Those code-constructions meets in libgda and libgnome-db( and may be all of this
codes normally compiled under older versions of gcc)
--
Summary: Error at last empty case in switch block.
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: do8896 at db dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17026