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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
I don't think this is valid.  Integer division by zero is an undefined behavior
thus there may be SIGFPE or not, and neither means a bug in the compiler.

The UBSAN just reports a message ("runtime error: division by zero") when the
undefined behavior happens, it does not guarantee any specific "outcome" of the
undefined behavior.

Reply via email to