https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c++ |ipa Ever confirmed|0 |1 CC| |marxin at gcc dot gnu.org Last reconfirmed| |2022-05-02 Blocks| |56456 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- It's IPA ICF that merges the two functions. We then end up inlining but not using the original function body but the merged one. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 [Bug 56456] [meta-bug] bogus/missing -Warray-bounds