gcc-bugs@gcc.gnu.org
[Top] [All Lists]

[Bug libfortran/20179] cannot mix C and Fortran I/O

Subject: [Bug libfortran/20179] cannot mix C and Fortran I/O
From: "fxcoudert at gcc dot gnu dot org"
Date: 10 Sep 2005 16:16:25 -0000
------- 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

<Prev in Thread] Current Thread [Next in Thread>