This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcc/64677] incorrect result with complex division?


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]