https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128107

--- Comment #10 from Juno Krahn <juno.krahn at gmail dot com> ---
I am using Rocky 9 Linux, but this happens on all Linux systems and gfortran
versions that I have tried. I think this bug has existed 10+ years, and not
discovered due to FORTRAN code being slow to actually use STREAM I/O and POS=
file seek.

Note that the actual bug is not CRLF related, but it does not happen if I
generate a CRLF file (as in the sample code). I thought I had traced down the
bug source as in a previous comment, but I can't figure out why CRLF input
makes the bug go away. That was discovered before I looked at libgfortran code,
wondering if the off-by-one was somehow linked to EOL type. Also note, this is
CRLF input on standard libgfortran, not -DHAS_CRLF build.

Reply via email to