[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#140995: marked as done ([fixed in gcc-3.1] -Wswitch (also part of -Wall) is broken)



Your message dated Sat, 11 Jan 2003 04:32:44 -0500
with message-id <E18XI0S-00063W-00@auric.debian.org>
and subject line Bug#140995: fixed in gcc-3.0 1:3.0.4ds3-14
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Apr 2002 04:24:31 +0000
>From agthorr@barsoom.org Tue Apr 02 22:24:31 2002
Return-path: <agthorr@barsoom.org>
Received: from d172-163.uoregon.edu (volition) [128.223.172.163] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16scJw-0001Pd-00; Tue, 02 Apr 2002 22:24:28 -0600
Received: from agthorr by volition with local (Exim 3.33 #1 (Debian))
	id 16scJv-0006kX-00; Tue, 02 Apr 2002 20:24:27 -0800
From: Agthorr <agthorr@barsoom.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-3.0: -Wswitch (also part of -Wall) is broken
X-Mailer: reportbug 1.49
Date: Tue, 02 Apr 2002 20:24:27 -0800
Message-Id: <E16scJv-0006kX-00@volition>
Sender: Agthorr <agthorr@volition>
Delivered-To: submit@bugs.debian.org

Package: gcc-3.0
Version: 1:3.0.4-6
Severity: normal

-Wswitch doesn't actually seem to do anything in gcc-3.0, although it
works in gcc 2.95.4.  Here's what the documentation says it *should*
do:

------------------------------------------------------------------------
`-Wswitch'
     Warn whenever a `switch' statement has an index of enumeral type
     and lacks a `case' for one or more of the named codes of that
     enumeration.  (The presence of a `default' label prevents this
     warning.)  `case' labels outside the enumeration range also
     provoke warnings when this option is used.
------------------------------------------------------------------------

Here's a sample program:

------------------------------------------------------------------------
enum foo {
        FUBAR = 0,
        SNAFU = 1
};

int main(void)
{
        enum foo boop;

        switch (boop) {
        case FUBAR:
                break;
        case 3:
                break;
        }

        return 0;
}
------------------------------------------------------------------------

and here's what happen with gcc 2.95.4:

------------------------------------------------------------------------
volition:~/tmp$ gcc -Wswitch switch.c
switch.c: In function `main':
switch.c:16: warning: enumeration value `SNAFU' not handled in switch
switch.c:16: warning: case value `3' not in enumerated type `foo'
volition:~/tmp$ gcc --version
2.95.4
volition:~/tmp$ 
------------------------------------------------------------------------

but here's what happens with gcc-3.0:

------------------------------------------------------------------------
volition:~/tmp$ gcc-3.0 -Wswitch switch.c
volition:~/tmp$ 
------------------------------------------------------------------------

I normally compile with gcc 3.0 since it has so many more warnings
that I can turn on, so this is somewhat disheartening :-(


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux volition 2.4.18volition #1 Thu Mar 28 20:13:24 PST 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages gcc-3.0 depends on:
ii  binutils                   2.12.90.0.1-1 The GNU assembler, linker and bina
ii  cpp-3.0                    1:3.0.4-6     The GNU C preprocessor.
ii  gcc-3.0-base               1:3.0.4-6     The GNU Compiler Collection (base 
ii  libc6                      2.2.5-3       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.0.4-6     GCC support library.


---------------------------------------
Received: (at 140995-close) by bugs.debian.org; 11 Jan 2003 09:36:14 +0000
>From katie@auric.debian.org Sat Jan 11 03:36:14 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18XI3p-0006YU-00; Sat, 11 Jan 2003 03:36:14 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18XI0S-00063W-00; Sat, 11 Jan 2003 04:32:44 -0500
From: Matthias Klose <doko@debian.org>
To: 140995-close@bugs.debian.org
X-Katie: $Revision: 1.29 $
Subject: Bug#140995: fixed in gcc-3.0 1:3.0.4ds3-14
Message-Id: <E18XI0S-00063W-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sat, 11 Jan 2003 04:32:44 -0500
Delivered-To: 140995-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
gcc-3.0, which is due to be installed in the Debian FTP archive:

gcc-3.0-base_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/gcc-3.0-base_3.0.4-14_i386.deb
gcc-3.0_3.0.4ds3-14.diff.gz
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.diff.gz
gcc-3.0_3.0.4ds3-14.dsc
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.dsc
libstdc++3_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/libstdc++3_3.0.4-14_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 140995@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-3.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Fri, 27 Dec 2002 18:53:57 +0100
Source: gcc-3.0
Binary: gcc-3.0-soft-float libstdc++3 gcc-3.0-base gcc-3.0-nof
Architecture: source i386
Version: 1:3.0.4ds3-14
Distribution: unstable
Urgency: low
Maintainer: Debian GCC maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 gcc-3.0-base - The GNU Compiler Collection (base package)
 libstdc++3 - The GNU stdc++ library version 3
Closes: 94974 97904 100722 102353 105741 107633 108036 111613 116128 119635 121636 121668 123687 125649 127802 127890 128026 131399 134315 135967 137017 137959 140606 140995 141899 141900 141902 143912 144232 144584 146634 150232 155900 156792 158371 164135 165180 167569 167673 172353 173290
Changes: 
 gcc-3.0 (1:3.0.4ds3-14) unstable; urgency=low
 .
   * Build libstdc++ runtime only (on HPPA build gcc-3.0 as well as the
     default compiler).
     Note: The libstdc++ runtime does not build on a glibc-2.3.1 based
     system!
   * Add SH support.
   * Backport patch from HEAD to build with bison > 1.35.
   * Install gcj-wrapper (closes: #143912, #156792, #173290). Well this
     doesn't help much as we don't build gcj-3.0 anymore ...
   * Install fixed gij-wrapper (closes: #167569). Doesn't help anymore.
   * Closing reports for the packages that are not built anymore from
     this source package and are fixed in a newer version (gcc-3.2.x),
     which becomes the default version now:
     - General:
       + Use mkstemp instead of mktemp (closes: #127802).
     - Preprocessor:
       + Fix redundant error message from cpp (closes: #100722).
     - C:
       + Optimization issue on ix86 (pointless moving) (closes: #97904).
       + Miscompilation of allegro on ix86 (closes: #105741).
       + Fix generation of ..ng references for static aliases (alpha-linux).
         (closes: #108036).
       + ICE compiling pari on hppa (closes: #111613).
       + ICE on ia64 in instantiate_virtual_regs_1 (closes: #121668).
       + ICE in c-typeck.c (closes: #123687).
       + ICE in gen_subprogram_die on alpha (closes: #127890).
       + SEGV in initialization of flexible char array member (closes: #131399).
       + ICE on arm compiling lapack (closes: #135967).
       + ICE in incomplete_type_error (closes: #140606).
       + Fix -Wswitch (also part of -Wall) (closes: #140995).
       + Wrong code in mke2fs on hppa (closes: #150232).
       + sin(a) * sin(b) gives wrong result (closes: #164135).
     - C++:
       + Error in std library headers on arm (closes: #107633).
       + ICE nr. 19970302 (closes: #119635).
       + std::wcout does not perform encoding conversions (closes: #128026).
       + SEGV, when compiling iostream.h with -fPIC (closes: #134315).
       + Fixed segmentation fault in included code for <rope> (closes: #137017).
       + Fix with exception handling and -O (closes: #144232).
       + Fix octave-2.1 build failure on ia64 (closes: #144584).
       + nonstandard overloads in num_get facet (closes: #155900).
       + ICE in expand_end_loop with -O (closes: #158371).
     - Fortran:
       + Fix blas build failure on arm (closes: #137959).
     - Java:
       + Interface members are public by default (closes: #94974).
       + Strange message with -fno-bounds-check in combination with -W.
         (closes: #102353).
       + Crash in FileWriter using IOException (closes: #116128).
       + Fix ObjectInputStream.readObject() calling constructors.
         (closes: #121636).
       + gij: better error reporting on `class not found' (closes: #125649).
       + Lockup during .java->.class compilation (closes: #141899).
       + Compile breaks using temporary inner class instance (closes: #141900).
       + Default constructor for inner class causes broken bytecode.
         (closes: #141902).
       + gij-3.2 linked against libgcc1 (closes: #165180).
       + gij-wrapper understands -classpath parameter (closes: #146634).
       + gij-3.2 doesn't ignore -jar when run as "java" (closes: #167673).
     - ObjC;
       + ICE on alpha (closes: #172353).
   * Reassign unfixed bugs to the corresponding -3.2.x package:
     reassign 94701 gcc-3.2
     reassign 95318 gcc-3.2
     reassign 105309 gcc-3.2
     reassign 106866 gcc-3.2
     reassign 121282 gcc-3.2
     reassign 122103 gcc-3.2
     reassign 128950 gcc-3.2
     reassign 128993 gcc-3.2
     reassign 140201 libstdc++5
     reassign 151357 g++-3.2
     reassign 165635 gcj-3.2
Files: 
 ba55ec232ff94f84b493028fada10f61 1317 devel standard gcc-3.0_3.0.4ds3-14.dsc
 c39d2af4372576c676f374f5669c0048 4988358 devel standard gcc-3.0_3.0.4ds3-14.diff.gz
 39f6491a8438a6bf4ea5f2c85a571cc6 114972 devel oldlibs gcc-3.0-base_3.0.4-14_i386.deb
 d540a3f1876db903f74a7202129ee90f 203406 base standard libstdc++3_3.0.4-14_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBPhCoJguDzMCIcnEhAQGgjwgAqhlamoPOz3LtFEwsJVuKpVPse46uqTkF
pslL9tam7LCm33tU5n5sla90r2K79p9Nw4XE+PCIoudcUIgBvCuSeanS6Fp/MTjP
nPkIL928SWtMcTz134h2bxRr4gGJ0O4xcwcJFe5wD9BnZo8IDgNL7cMDEkI0Qe1j
mBS8wuEEy12GWUKYtxqAqnFtYN9OEizc48HBMrf/MTK9ND0Yg6WmlAK+G7L0qI7i
p0yJNarZ/CZ3jCzxieeXfaRHpxdmpwq44d3ppRuNZcKgQ2AnrNO57FBdJJeqpRCb
jCEqIxDn4VrimXhpyTX84Kdd3k1sEwpJ8ibz/tZDIKU/H2SGujWmbw==
=o8J1
-----END PGP SIGNATURE-----



Reply to: