[LLVMbugs] [Bug 21095] Wrong handling of minimal long long integer (-9223372036854775808ll) literal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 29 14:47:08 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21095

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 #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is working as intended. The code is ill-formed because it gives an integer
literal that doesn't fit in any signed integer type, and as a conforming
extension we give it an unsigned type instead.

Sorry, but this is how C and C++ work; the - is not part of the literal.

-- 
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/20140929/c4945d67/attachment.html>


More information about the llvm-bugs mailing list