c++: Mark member functions as const [PR98951]
authorMarek Polacek <polacek@redhat.com>
Wed, 3 Feb 2021 16:58:13 +0000 (11:58 -0500)
committerMarek Polacek <polacek@redhat.com>
Wed, 3 Feb 2021 18:24:40 +0000 (13:24 -0500)
commitb52a1dfe12a6303c7649f3ff5b8dac6c1001d49a
tree36c6a58ad9d498be45eaff3b82ff0f724f87b70a
parent5c62e4f255bfac65e18213fd93ee1c9908b4a750
c++: Mark member functions as const [PR98951]

These member functions look like they could be marked const, since
they don't modify any (non-mutable) class members.

PR c++/98951
* call.c (struct z_candidate): Mark rewritten and reversed as const.
(struct NonPublicField): Mark operator() as const.
(struct NonTrivialField): Likewise.
gcc/cp/call.c