https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105469
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- On the original testcase I see First context does not permit base -> invalid No devirtualization target in void joedb::Readonly_Journal::play_until_checkpoint.constprop(joedb::Writable&)/2704 It is unclear why play_until_checkpoint would be cloned, it doesn't have any args that would be IPA-CP propagated. The checkpoint virtual call has, but until it is devirtualized we can't optimize it.