[LLVMbugs] [Bug 18073] New: Off-by-one in warnings generated for too large bit-shifts

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 26 16:52:03 PST 2013


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

            Bug ID: 18073
           Summary: Off-by-one in warnings generated for too large
                    bit-shifts
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: sim at hostway.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

No warning (incorrect):
echo 'int main(){ return 0ULL << 64; }' | clang -O2 --analyze -xc - -o
/dev/null

Warning (correct):
echo 'int main(){ return 0ULL << 65; }' | clang -O2 --analyze -xc - -o
/dev/null

Warning (correct):
echo 'int main(){ return 0ULL << 64; }' | clang -O2 -xc - -o /dev/null

-- 
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/20131127/47c62c82/attachment.html>


More information about the llvm-bugs mailing list