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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This code is not invalid but undefined at runtime.  This means anything can
happen.  In this case, GCC optimizes it away.
It is better to use __builtin_trap or __builtin_abort/std::abort if you want to
get a trap going on.

Reply via email to