[Bug libfortran/20179] cannot mix C and Fortran I/O
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Sep 10 16:16:00 GMT 2005
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-09-10 16:16 -------
I should add that the code concerned is in io/transfer.c, line 1174:
/* Overwriting an existing sequential file ?
it is always safe to truncate the file on the first write */
if (g.mode == WRITING
&& current_unit->flags.access == ACCESS_SEQUENTIAL
&& current_unit->last_record == 0)
struncate(current_unit->s);
Well, my opinion is that this comment is wrong! :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179
More information about the Gcc-bugs
mailing list