https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111284
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Strange, cxx_bind_parameters_in_call is called on DECL_ARGUMENTS of the function (so the ones modified by the genericization), while the function bodies actually have the parameters remaped (stored in the fundef->parms). Not really sure how those connect together.