https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29968
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Vincent Lefèvre from comment #4) > (In reply to Andreas Schwab from comment #2) > > Your program is invoking undefined behaviour. You should not perform the > > division if the divisor is zero. > > But PR109578 Comment 1 says that side effects should be visible before > undefined behavior occurs. Thus this bug should be reopened. Except it can no longer reproduce it so the issue has been fixed a long time ago.