public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++
@ 2005-05-25 20:24 gdr at gcc dot gnu dot org
2005-05-25 22:31 ` [Bug c/21759] Implement " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-05-25 20:24 UTC (permalink / raw)
To: gcc-bugs
Implement a -W switch that warn for most common cases of valid C codes that
are invalid in C++, or are valid in C++ but with a slightly different menaing.
--
Summary: feature request: implement warning for codes at the
intersection of C and C++
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gdr at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Plateform independent
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
@ 2005-05-25 22:31 ` pinskia at gcc dot gnu dot org
2005-06-09 15:05 ` gdr at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-25 22:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
GCC host triplet|Plateform independent |
Keywords| |diagnostic
Summary|feature request: implement |Implement warning for codes
|warning for codes at the |at the intersection of C and
|intersection of C and C++ |C++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
2005-05-25 22:31 ` [Bug c/21759] Implement " pinskia at gcc dot gnu dot org
@ 2005-06-09 15:05 ` gdr at gcc dot gnu dot org
2005-06-09 22:22 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-06-09 15:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2005-06-09 15:05 -------
working on it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |gdr at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-09 15:05:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
2005-05-25 22:31 ` [Bug c/21759] Implement " pinskia at gcc dot gnu dot org
2005-06-09 15:05 ` gdr at gcc dot gnu dot org
@ 2005-06-09 22:22 ` cvs-commit at gcc dot gnu dot org
2005-09-18 1:56 ` pinskia at gcc dot gnu dot org
2005-09-18 2:52 ` gdr at integrable-solutions dot net
4 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-09 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-09 22:22 -------
Subject: Bug 21759
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: gdr@gcc.gnu.org 2005-06-09 22:21:48
Modified files:
gcc : ChangeLog c-typeck.c c.opt
gcc/doc : invoke.texi
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: Wcxx-compat-1.c
Log message:
PR c/21759
* c.opt (Wc++-compat): New.
* doc/invoke.texi (-Wc++-compat): Document.
* c-typeck.c (convert_for_assignment): Check for implicit
conversion void* -> T*.
testsuite/
* gcc.dg/Wcxx-compat-1.c: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9110&r2=2.9111
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.451&r2=1.452
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c.opt.diff?cvsroot=gcc&r1=1.45&r2=1.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&r1=1.632&r2=1.633
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5619&r2=1.5620
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/Wcxx-compat-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-06-09 22:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-18 1:56 ` pinskia at gcc dot gnu dot org
2005-09-18 2:52 ` gdr at integrable-solutions dot net
4 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 01:55 -------
Isn't this fixed?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-09-18 1:56 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 2:52 ` gdr at integrable-solutions dot net
4 siblings, 0 replies; 13+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-09-18 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2005-09-18 02:52 -------
Subject: Re: Implement warning for codes at the intersection of C and C++
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Isn't this fixed?
No. There are still other areas not covered.
I'll close the PR when I consider it fixed. Thanks.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2009-09-07 0:59 ` ghazi at gcc dot gnu dot org
@ 2010-07-03 20:09 ` manu at gcc dot gnu dot org
6 siblings, 0 replies; 13+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-07-03 20:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from manu at gcc dot gnu dot org 2010-07-03 20:08 -------
Isn't this a duplicate of PR37041? That PR is more complete than this one.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2008-08-07 20:30 ` tromey at gcc dot gnu dot org
@ 2009-09-07 0:59 ` ghazi at gcc dot gnu dot org
2010-07-03 20:09 ` manu at gcc dot gnu dot org
6 siblings, 0 replies; 13+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2009-09-07 0:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from ghazi at gcc dot gnu dot org 2009-09-07 00:59 -------
(In reply to comment #9)
> See this note for some details on the semantics of this warning,
> with respect to keywords:
> http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00808.html
What's the status of this PR? Are there any issues remaining for completing
-Wc++-compat?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2008-07-06 22:27 ` pinskia at gcc dot gnu dot org
@ 2008-08-07 20:30 ` tromey at gcc dot gnu dot org
2009-09-07 0:59 ` ghazi at gcc dot gnu dot org
2010-07-03 20:09 ` manu at gcc dot gnu dot org
6 siblings, 0 replies; 13+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-08-07 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from tromey at gcc dot gnu dot org 2008-08-07 20:28 -------
See this note for some details on the semantics of this warning,
with respect to keywords:
http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00808.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2008-07-06 22:23 ` ghazi at gcc dot gnu dot org
@ 2008-07-06 22:27 ` pinskia at gcc dot gnu dot org
2008-08-07 20:30 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-07-06 22:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-07-06 22:26 -------
>Not sure what the exact error message was.
Easy, the decls were not defined :). Basically the enums get the scope of the
struct they are defined in for C++ but in C, they get the global scope. A
warning for this is not that useful really if we are going to move to C++ where
we want them in the scope of the struct rather than the global scope.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
2007-01-26 16:09 ` manu at gcc dot gnu dot org
2008-06-19 8:03 ` ghazi at gcc dot gnu dot org
@ 2008-07-06 22:23 ` ghazi at gcc dot gnu dot org
2008-07-06 22:27 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-07-06 22:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ghazi at gcc dot gnu dot org 2008-07-06 22:22 -------
Another C/C++ conflict (?) that could be possibly implemented in this warning
feature, enum declaration scoping:
http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00470.html
Not sure what the exact error message was.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
2007-01-26 16:09 ` manu at gcc dot gnu dot org
@ 2008-06-19 8:03 ` ghazi at gcc dot gnu dot org
2008-07-06 22:23 ` ghazi at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-06-19 8:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ghazi at gcc dot gnu dot org 2008-06-19 08:03 -------
Manuel - "quick and dirty" list got posted here:
http://gcc.gnu.org/ml/gcc/2008-06/msg00412.html
I think #3 & #4 are implemented, #1 & #2 remain. There might be others of
course.
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ghazi at gcc dot gnu dot org
Last reconfirmed|2005-12-18 20:03:32 |2008-06-19 08:03:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/21759] Implement warning for codes at the intersection of C and C++
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
@ 2007-01-26 16:09 ` manu at gcc dot gnu dot org
2008-06-19 8:03 ` ghazi at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 13+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-01-26 16:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from manu at gcc dot gnu dot org 2007-01-26 16:08 -------
Gabriel, if you could do a quick and dirty list of what remains to be done,
perhaps some potential contributor would try to implement it as an entry point
to GCC development.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-07-03 20:09 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25 20:24 [Bug c/21759] New: feature request: implement warning for codes at the intersection of C and C++ gdr at gcc dot gnu dot org
2005-05-25 22:31 ` [Bug c/21759] Implement " pinskia at gcc dot gnu dot org
2005-06-09 15:05 ` gdr at gcc dot gnu dot org
2005-06-09 22:22 ` cvs-commit at gcc dot gnu dot org
2005-09-18 1:56 ` pinskia at gcc dot gnu dot org
2005-09-18 2:52 ` gdr at integrable-solutions dot net
[not found] <bug-21759-1000@http.gcc.gnu.org/bugzilla/>
2007-01-26 16:09 ` manu at gcc dot gnu dot org
2008-06-19 8:03 ` ghazi at gcc dot gnu dot org
2008-07-06 22:23 ` ghazi at gcc dot gnu dot org
2008-07-06 22:27 ` pinskia at gcc dot gnu dot org
2008-08-07 20:30 ` tromey at gcc dot gnu dot org
2009-09-07 0:59 ` ghazi at gcc dot gnu dot org
2010-07-03 20:09 ` manu at gcc dot gnu dot org
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).