[LLVMbugs] [Bug 22549] New: std::complex<double> division by double gives slightly inaccurate result

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 11 11:56:28 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: stefan at smaintz.de
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150211/a17562d4/attachment.html>


More information about the llvm-bugs mailing list