https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84210
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I don't remember if the const was needed. I guess if the testcases added in r217553 still pass even without the const then we can get rid of it.