public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/4475: -Wswitch option not functional
@ 2001-10-05 1:56 tim.vanholder
0 siblings, 0 replies; 3+ messages in thread
From: tim.vanholder @ 2001-10-05 1:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 4475
>Category: c
>Synopsis: -Wswitch option not functional
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 05 01:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: tim.vanholder@anubex.com
>Release: gcc-3.0.1
>Organization:
>Environment:
RedHat Linux 6.2 (with upgraded glibc)/i386
>Description:
The -Wswitch option no longer works in gcc 3.x; missing enumeration values in switches are no longer reported.
(Note: there is also a redundant 'if (warn_switch)' in stmt.c::check_for_full_enumeration_handling())
>How-To-Repeat:
Compile the attached file with the -Wswitch option.
>Fix:
My guess is that either check_for_full_enumeration_handling() is broken, or that it is not called when it should be.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.c"
ZW51bSBjb3VudF9jb3VudCB7IG9uZV9tdXBwZXQsIHR3b19tdXBwZXRzLCB0aHJlZV9tdXBwZXRz
IH07CgppbnQKbWFpbih2b2lkKQp7CmVudW0gY291bnRfY291bnQgU2VzYW1lOwogIHN3aXRjaCAo
U2VzYW1lKSB7CiAgICBjYXNlIG9uZV9tdXBwZXQ6CiAgICBjYXNlIHR3b19tdXBwZXRzOgogICAg
ICBicmVhazsKICAgIC8qIEV2ZW4gd2l0aCAtV3N3aXRjaCwgZ2NjIDMueCBkb2VzIE5PVCB3YXJu
IGFib3V0IHRoZSBtaXNzaW5nICd0aHJlZV9tdXBwZXRzJyBjYXNlICovCiAgfQp9Cgo=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/4475: -Wswitch option not functional
@ 2002-02-06 2:33 jakub
0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-02-06 2:33 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jakub, tim.vanholder
Synopsis: -Wswitch option not functional
State-Changed-From-To: open->closed
State-Changed-By: jakub
State-Changed-When: Wed Feb 6 02:32:59 2002
State-Changed-Why:
Fixed by 2002-02-04 patch.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4475
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/4475: -Wswitch option not functional
@ 2002-02-04 5:54 jakub
0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-02-04 5:54 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jakub, nobody, tim.vanholder
Synopsis: -Wswitch option not functional
Responsible-Changed-From-To: unassigned->jakub
Responsible-Changed-By: jakub
Responsible-Changed-When: Mon Feb 4 05:54:43 2002
Responsible-Changed-Why:
Testing fix.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4475
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-06 10:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-05 1:56 c/4475: -Wswitch option not functional tim.vanholder
2002-02-04 5:54 jakub
2002-02-06 2:33 jakub
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).