http://llvm.org/bugs/show_bug.cgi?id=19535
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Richard Smith <[email protected]> --- C++11 5.6/4: "If the second operand of / or % is zero the behavior is undefined." Turn this UBSan error off (with -fno-sanitize=float-divide-by-zero) if you don't want to check this, and you should get the +/-inf answer you're expecting (I'm reasonably confident we don't optimize on the basis of this being undefined behavior). -- 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
