[llvm-bugs] [Bug 45122] Segmentation fault in default Optimization and O1, but works well in O2 ~ Os

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 15 21:10:03 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45122

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is not a bug. a[-1] is an out-of-bounds array indexing, so has undefined
behavior.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200616/bdd60446/attachment-0001.html>


More information about the llvm-bugs mailing list