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

David Blaikie <[email protected]> changed:

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

--- Comment #1 from David Blaikie <[email protected]> ---
Looks like undefined behavior to me.

signed integer overflow (as happens at the beginning of the call to checked_add
when passed max_int) is undefined. Since your program unconditionally executes
that addition, the behavior of the entire program is undefined - nothing it
does, even before the point of the addition, is guaranteed by the C++ standard.

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