http://llvm.org/bugs/show_bug.cgi?id=15199
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #4 from Richard Smith <[email protected]> --- The conversion from kint64max to double rounds up; the conversion from double back to int64_t overflows. This program has undefined behavior. $ clang yourcode.cpp -fsanitize=undefined $ ./a.out <unknown>: runtime error: value 9.22337e+18 is outside the range of representable values of type 'long' -- 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
