public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3780: -Wswitch not working
@ 2001-12-02 16:36 rodrigc
0 siblings, 0 replies; 5+ messages in thread
From: rodrigc @ 2001-12-02 16:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/3780; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
jfasch@aon.at, nobody@gcc.gnu.org, rodrigc@gcc.gnu.org
Cc:
Subject: Re: c++/3780: -Wswitch not working
Date: 3 Dec 2001 00:30:32 -0000
Synopsis: -Wswitch not working
State-Changed-From-To: feedback->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sun Dec 2 16:30:31 2001
State-Changed-Why:
-Wswitch does not introduce warning on testcase
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3780&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/3780: -Wswitch not working
@ 2002-02-06 2:34 jakub
0 siblings, 0 replies; 5+ messages in thread
From: jakub @ 2002-02-06 2:34 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jfasch, nobody, rodrigc
Synopsis: -Wswitch not working
State-Changed-From-To: analyzed->closed
State-Changed-By: jakub
State-Changed-When: Wed Feb 6 02:34:41 2002
State-Changed-Why:
Fixed by http://gcc.gnu.org/ml/gcc-patches/2002-02/msg00219.html.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3780
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/3780: -Wswitch not working
@ 2001-12-02 16:30 rodrigc
0 siblings, 0 replies; 5+ messages in thread
From: rodrigc @ 2001-12-02 16:30 UTC (permalink / raw)
To: gcc-bugs, gcc-gnats, gcc-prs, jfasch, nobody, rodrigc
Synopsis: -Wswitch not working
State-Changed-From-To: feedback->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sun Dec 2 16:30:31 2001
State-Changed-Why:
-Wswitch does not introduce warning on testcase
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3780&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/3780: -Wswitch not working
@ 2001-09-15 21:30 rodrigc
0 siblings, 0 replies; 5+ messages in thread
From: rodrigc @ 2001-09-15 21:30 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jfasch, nobody, rodrigc
Synopsis: -Wswitch not working
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Sat Sep 15 21:30:40 2001
State-Changed-Why:
If you have a patch which solves this problem, can you:
(1) Read http://gcc.gnu.org/contribute.html , and create a patch.
(2) Create a ChangeLog entry in a format similar to
http://www.gnu.org/software/changelogs/gcc/gcc-3.0/gcc/ChangeLog
(3) Submit your patch to gcc-patches@gcc.gnu.org where it will
enter the queue of patches to be evaluated for gcc.
I'll keep a reference to your patch on this PR.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3780&database=gcc
^ permalink raw reply [flat|nested] 5+ messages in thread
* c++/3780: -Wswitch not working
@ 2001-07-23 14:26 jfasch
0 siblings, 0 replies; 5+ messages in thread
From: jfasch @ 2001-07-23 14:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 3780
>Category: c++
>Synopsis: -Wswitch not working
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 23 14:26:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Joerg Faschingbauer
>Release: 3.0
>Organization:
>Environment:
Stock Redhat 7.1 (kernel 2.4.2, glibc 2.2.2), Pentium 200
>Description:
when compiling the following code with -Wswitch,
enum Enum {
A
};
void f() {
Enum e;
switch (e) {}
}
I'd expect to see a warning about as "enumeration value `A' not handled in switch".
>How-To-Repeat:
>Fix:
a quick (and dirty?) solution works for me:
disable default_conversion() in cp/typeck.c for
ENUMERAL_TYPE. this preserves the ENUMERAL_TYPE and its
possible values until
stmt.c:check_for_full_enumeration_handling()
which is called from stmt.c:expand_end_case().
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-02-06 10:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-02 16:36 c++/3780: -Wswitch not working rodrigc
-- strict thread matches above, loose matches on Subject: below --
2002-02-06 2:34 jakub
2001-12-02 16:30 rodrigc
2001-09-15 21:30 rodrigc
2001-07-23 14:26 jfasch
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).