https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373
--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> --- On July 10, 2021 7:13:47 PM GMT+02:00, rguenther at suse dot de <gcc-bugzi...@gcc.gnu.org> wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 > >--- Comment #10 from rguenther at suse dot de <rguenther at suse dot >de> --- >On July 9, 2021 9:43:52 PM GMT+02:00, "ebotcazou at gcc dot gnu.org" ><gcc-bugzi...@gcc.gnu.org> wrote: >>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101373 >> >>--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- >>Or maybe I misunderstood your request and you wanted an Ada testcase >>where the >>hoisting would still happen despite the fix for C++? > >No, I thought we could have one that's fixed when the hoisting does not >happen... Maybe for that we just have to use the result of the call in the non-throwing case.