http://llvm.org/bugs/show_bug.cgi?id=22549
Bug ID: 22549
Summary: std::complex<double> division by double gives slightly
inaccurate result
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13847
--> http://llvm.org/bugs/attachment.cgi?id=13847&action=edit
program demonstrating the inaccuracy
The attached program gives (1.9963498977862717,-0) when compiled under Linux
with clang++ 3.5.1.
When compiled under OS X Yosemite (Apple LLVM version 6.0 (clang-600.0.56)
(based on LLVM 3.5svn)) it returns (1.9963498977862715,-0), which I think is
correct.
GCC and Intel 14 also give (1.9963498977862715,-0).
--
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