------- 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