This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/64677] incorrect result with complex division?
- From: "spatel at rotateright dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 21 Jan 2015 17:04:14 +0000
- Subject: [Bug libgcc/64677] incorrect result with complex division?
- Auto-submitted: auto-generated
- References: <bug-64677-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64677
--- Comment #11 from Sanjay Patel <spatel at rotateright dot com> ---
(In reply to Mikhail Maltsev from comment #10)
> C++11 supports constexpr (and std::complex has constexpr constructor).
Ah, that makes sense. Yes, we're only generating the answer using MPFR with
c++11 and optimization. So I think this comes down to an implementation
difference between libgcc and MPFR.
> By the way, according to C++ standard, precision of floating point numbers
> is implementation-defined.
Hmmm...so we still don't know which answer is correct or if both answers are
acceptable?