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]

[Bug c/17026] New: Error at last empty case in switch block.


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


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