https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92472
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- Or in other words, of course whether a parameter can be const is separate from whether a member function can be const. But that doesn't mean that changing a parameter from non-const to const can't have any effect. It certainly has an effect on which member functions you can call on the parameter.