[Bug c/94053] Segmentation fault in default Optimization, but works well in O1 ~ Os

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 5 15:42:00 GMT 2020


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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The code is undefined so both behaviors are fine.  Note address sanitizer will
dect this at runtime.


More information about the Gcc-bugs mailing list