https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107850
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I have very little sympathy for this use case, predicates that can't be called with const arguments are always wrong. I'm inclined to say the standard should be fixed to match our new behaviour.