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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 29 14:02:37 PDT 2014


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

            Bug ID: 21095
           Summary: Wrong handling of minimal long long integer
                    (-9223372036854775808ll) literal
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: oliora at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

According to specs, the minimal possible signed long long integer on modern
MacBook (Intel Core i7 CPU) is -9223372036854775808. But when I specify it (as
-9223372036854775808ll) I got warning "Integer constant is larger than the
largest signed integer type" and integer is converted into usnigned long long
with value 9223372036854775808.

-- 
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/98ef3b73/attachment.html>


More information about the llvm-bugs mailing list