[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 5 02:57:04 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022
--- Comment #21 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to john.harper from comment #20)
> With the first test case all the EN outputs were 666. but the Fortran 2018
> standard 13.7.2.3.4 paragraph 2 requires that EN0.0 produce 666.E+0 but
> Table 13.2 first ENw.d line appears to require either 666.E+00 or 666.+000
> unless my copy of F2018 is out of date. (I note that the F2023 standard
> removed the ambiguity by including "with w > 0" in the offending line of
> Table 13.2.) However F2018 is unambiguous and agrees with F2023 on
> EN0.0E0, requiring 666.E+0
>
> With the second test case, which used 66600, I think all Jerry's outputs
> are correct.
I did not touch the code that writes the Exponent parts yet. So will have a
look.
More information about the Gcc-bugs
mailing list