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

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
UBSan is correct. C11 6.5.7/3 says:

"If the value of the right operand is negative or is greater than or equal to
the width of the promoted left operand, the behavior is undefined."

C++11 5.8/1 says:

"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."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to