[llvm-bugs] [Bug 24845] C++ says shift-overflow should produce 0

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 16 10:42:28 PDT 2015


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

David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Majnemer <david.majnemer at gmail.com> ---
Section 5.8, paragraph one states:
The behavior is undefined if the right operand is negative, or greater than or
equal to the length in bits of the promoted left operand.

Your right operand is, in fact, greater than or equal to the length of bits in
your promoted left operand.

-- 
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/20150916/d860b153/attachment.html>


More information about the llvm-bugs mailing list