[llvm-bugs] [Bug 24972] Error when working with pointers

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 28 08:03:24 PDT 2015


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

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
Your program exhibits Undefined Behavior.

If your program attempts to modify the value of a constant variable (num) then
it has UB and none of the behavior of the program is guaranteed. (eg: the
program could crash before it prints anything, it could fail to compile, etc,
etc - all these things are valid)

-- 
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/20150928/af839096/attachment.html>


More information about the llvm-bugs mailing list