https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92454
--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> --- I think the patch is (In reply to Jan Hubicka from comment #2) > This is the usual problem of trying to process node with no summary > attached to it. The following fixes the ICE, but I am not sure if there > is a cleaner approach. > > Martin, i suppose the issue here is with thunks in addition to stuff > optimized with -fno-ipa-cp? I don't think any -fno-ipa-cp is involved, it is just a thunk which is a part of an SCC because of speculative dervirtualization and the code simply did not anticipate such situation - thunk was though of as always a target of indirect calls, at least pre-IPA-CP. In any event, adding the test here seems to be the right thing to do, plus we probably want a similar test in spread_undeadness.