This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] commited, patch for PR 24685
> The above number is properly sscanf/strtolded as inf, as it is (tiny bit)
> bigger than __LDBL_MAX__.
Here is the error. huge() is supposed to be the largest finite number
of the chosen model (for an explanation about the difference between
that number and the largest finite number for the corresponding C
type, see http://gcc.gnu.org/ml/fortran/2005-11/msg00170.html and
references herein).
But I believe here that huge() is right, but writing huge() leads to a
rounded-up value, which when it is read again is then infinite. So
widening the real(16) format should do the trick, just the same way I
did it for real(10) in the patch at the beginning of this thread.
FX