[llvm-bugs] [Bug 38911] misoptimizing EMPTY_STACK was placed into .rodata

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 12 05:35:22 PDT 2018


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

Anton Korobeynikov <anton at korobeynikov.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anton at korobeynikov.info
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Anton Korobeynikov <anton at korobeynikov.info> ---
The transformation is correct and the code is clearly UB. 

7.1.5.1 [dcl.type.cv] explicitly says:

4 Except that any class member declared mutable (7.1.1) can be modified, any
attempt to modify a const object during its lifetime (3.8) results in 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/20180912/a8f95184/attachment.html>


More information about the llvm-bugs mailing list