[Bug libfortran/92100] Formatted stream IO irreproducible read with binary data in file

angus at agibson dot me gcc-bugzilla@gcc.gnu.org
Wed Oct 16 22:57:00 GMT 2019


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

--- Comment #5 from Angus Gibson <angus at agibson dot me> ---
I agree that it's not ideal... Unfortunately an awkward file format, and
fortran is usually the wrong language for this kind of IO anyway. I guess the
note that "A processor may prohibit some control characters from appearing in a
formatted stream file" is a bit of an escape clause for gfortran here.

I would argue that because the position is obtained from an inquire statement,
we should be able to re-set the file position to that (indeed, Intel Fortran,
not that it defines the standard, does what I expect). Anyway, I'm happy for
this to go either way.


More information about the Gcc-bugs mailing list