[Bug analyzer/98679] New: Four functions could be marked "const".

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 14 12:21:18 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98679

            Bug ID: 98679
           Summary: Four functions could be marked "const".
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

trunk.git/gcc/analyzer/analyzer.h:172:8: style:inconclusive: Technically the
member function 'ana::region_offset::operator==' can be const. [functionConst]

2.

trunk.git/gcc/analyzer/pending-diagnostic.h:160:8: style:inconclusive:
Technically the member function 'ana::pending_diagnostic::equal_p' can be
const. [functionConst]

3.

trunk.git/gcc/analyzer/store.h:427:8: style:inconclusive: Technically the
member function 'ana::binding_cluster::for_each_value' can be const.
[functionConst]

4.

trunk.git/gcc/analyzer/store.h:462:8: style:inconclusive: Technically the
member function 'ana::binding_cluster::for_each_binding' can be const.
[functionConst]

I checked each of these and they looked like a plausible enhancement.


More information about the Gcc-bugs mailing list