This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25845] New: want optional warning for non-constant declarations that could be constant
- From: "sigra at home dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2006 15:34:09 -0000
- Subject: [Bug c++/25845] New: want optional warning for non-constant declarations that could be constant
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Declaring variables and parameters as constants is a very useful feature that
should be used as much as possible. Therefore it would be very useful to have
an option to warn when something is not declared as constant eventhough it
could be, at least in C++ and probably in other languages as well.
--
Summary: want optional warning for non-constant declarations that
could be constant
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sigra at home dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25845