https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65610
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 35180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35180&action=edit gcc5-pr65610.patch Untested fix. Not at all sure about the if (!cfun->after_inlining) guard, dunno when we can call the ipa-polymorphic-call.c stuff, if it can happen also later on, the guard should be removed.