[LLVMbugs] [Bug 17357] Miscompilation with __attribute__(( const ))

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 25 11:08:56 PDT 2013


Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|---                         |INVALID

--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> ---
You're misusing the "const" attribute.  someObject is a global variable, and
your function writes to it.  (someObject is initialized the first time the
function is called.)

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/20130925/172eabbc/attachment.html>

More information about the llvm-bugs mailing list