------- Comment #8 from burnus at gcc dot gnu dot org 2007-03-19 12:53 -------
Reading further, I find:
"For nonadvancing input [...] If no error condition occurred in a nonadvancing
output statement, the file position is not changed."
If I understand the whole correctly, it means:
- The position for the nonadvancing transfer of "XXXXXXXXX", t1, "ABC" is after
the "ABC".
- After doing the advancing transfer "DEF" it is at the highest-numbered
position to which data was transferred by the statement, namely after
"ABCDEFXXX" + new_line.
Thus, NAG f95/Sun/HP seems to be wrong; ifort, g95, xlf and portland seem to be
right and gfortran gets it differently wrong.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|write with "t1" format gives|write with "t1" +
|wrong output |nonadvancing transfer format
| |gives wrong output
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31199