[Bug c++/25845] New: want optional warning for non-constant declarations that could be constant

sigra at home dot se gcc-bugzilla@gcc.gnu.org
Wed Jan 18 15:34:00 GMT 2006


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



More information about the Gcc-bugs mailing list