https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92100
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Wed, Oct 16, 2019 at 10:57:05PM +0000, angus at agibson dot me wrote: > 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. > I agree that gfortran should do better. I simply don't know internals of libgfortran well enough to come up with a quick fix.