public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18313] New: Missing warning for superfluous const's in return types
@ 2004-11-05 21:23 reichelt at gcc dot gnu dot org
2004-11-05 21:25 ` [Bug c++/18313] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-05 21:23 UTC (permalink / raw)
To: gcc-bugs
The C++ frontend doesn't warn about superfluous const's in function
return types like the following (even with -Wall -W -pedantic):
=====================
const void bar();
const int foo();
=====================
This affects all compilers since 2.95.3.
The C frontend does warn about such situations.
--
Summary: Missing warning for superfluous const's in return types
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18313
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/18313] Missing warning for superfluous const's in return types
2004-11-05 21:23 [Bug c++/18313] New: Missing warning for superfluous const's in return types reichelt at gcc dot gnu dot org
@ 2004-11-05 21:25 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-05 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-05 21:25 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-05 21:25:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18313
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-05 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-05 21:23 [Bug c++/18313] New: Missing warning for superfluous const's in return types reichelt at gcc dot gnu dot org
2004-11-05 21:25 ` [Bug c++/18313] " pinskia 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).