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; 10+ 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] 10+ messages in thread

end of thread, other threads:[~2009-07-25 13:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18313-1771@http.gcc.gnu.org/bugzilla/>
2006-10-26  4:26 ` [Bug c++/18313] Missing warning for superfluous const's in return types mueller at gcc dot gnu dot org
2006-10-30 23:35 ` mueller at gcc dot gnu dot org
2006-11-30 23:08 ` mueller at gcc dot gnu dot org
2006-11-30 23:12 ` mueller at gcc dot gnu dot org
2007-01-26 22:52 ` pinskia at gcc dot gnu dot org
2007-01-26 23:01 ` bangerth at dealii dot org
2007-01-26 23:04 ` manu at gcc dot gnu dot org
2008-02-26  1:51 ` pinskia at gcc dot gnu dot org
2009-07-25 13:12 ` simartin at gcc dot gnu dot org
2004-11-05 21:23 [Bug c++/18313] New: " 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).