https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64922
--- Comment #13 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Created attachment 34671 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34671&action=edit Patch I am testing OK, the problem is that we first speculatively devirtualize to the target while inlining. Martin's ipa-prop code does not expect that and forgets to update parm_index of the call to reflect effect of inlining (it was written expecting only full devirt)