https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127184

            Bug ID: 127184
           Summary: non-call exception vs function lhs
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: EH, wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Created attachment 65475
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65475&action=edit
testcase

Take the attached testcase with -fnon-call-exceptions.

This testcase is optimized to just call f() and return 1. as even though f
might no throw, the assignment `b->a = ` might cause an exception.

Reply via email to