[Bug c++/118016] GCC adds excess precision to floating point literals, and therefore rounds incorrectly (x87 FPU, -fexcess-precision=standard)
geza.herman at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 12 19:34:34 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118016
--- Comment #4 from geza.herman at gmail dot com ---
Thanks!
After reading the links, I still think that the current behavior is bad (the
arguments in the docs weren't convincing, tbh), but it seems that it is
supposed to be like this, so arguing for changing it is out of scope here I
guess.
Also note, that my report is for C++, there is a related CWG:
https://cplusplus.github.io/CWG/issues/2752.html and
https://github.com/cplusplus/papers/issues/1584 (these are the same links as in
the stackoverflow answer in https://stackoverflow.com/a/79274730/8157187).
More information about the Gcc-bugs
mailing list