This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18313] New: Missing warning for superfluous const's in return types
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2004 21:23:18 -0000
- Subject: [Bug c++/18313] New: Missing warning for superfluous const's in return types
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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