Re: [PATCH] c++: Mark member functions as const [PR98951]

2021-02-03 Thread Jason Merrill via Gcc-patches
On 2/3/21 12:31 PM, Marek Polacek wrote: These member functions look like they could be marked const, since they don't modify any (non-mutable) class members. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? OK, I guess this is trivial enough for stage4. PR c++/98951

[PATCH] c++: Mark member functions as const [PR98951]

2021-02-03 Thread Marek Polacek via Gcc-patches
These member functions look like they could be marked const, since they don't modify any (non-mutable) class members. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? PR c++/98951 * call.c (struct z_candidate): Mark rewritten and reversed as const. (struct NonP