[llvm-bugs] [Bug 24564] Clang failed to discard const qualifier

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 25 17:10:18 PDT 2015


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
C11 6.7.3/6:

"If an attempt is made to modify an object defined with a const-qualified type
through use of an lvalue with non-const-qualified type, the behavior is
undefined."

 => Your code 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/20150826/bd06aab4/attachment.html>


More information about the llvm-bugs mailing list