[Bug libgcc/64677] incorrect result with complex division?
spatel at rotateright dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 21 17:04:00 GMT 2015
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?
More information about the Gcc-bugs
mailing list