https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115771
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Sam James from comment #3) > Fixed by r15-571-g1e0ae1f52741f7 on trunk which definitely isn't > backportable. > > Some additional notes: > * 8.5.0 works, 9.1.0 doesn't (broken by r9-5549-g8f10fb5065db28) > * 10.2 works, 10.3 doesn't (broken by r10-9646-g42c22a4d724b4a) > > Not bisected for why 10.2 works and doubt it's worth bothering. The reason why GCC 10.1.0/10.2.0 worked was due to the same reason why it was broken by r10-9646 (or rather why PR 98265 regressed), that is inlining changes.