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
[parent not found: <bug-21759-1000@http.gcc.gnu.org/bugzilla/>]
* [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
* [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
@ 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/>
` (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/>
` (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/>
` (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/>
` (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
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).