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

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 23 17:14:00 GMT 2005


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-05-23 17:12 -------
Good news for this PR. I located the root of the problem, which is that when the
library ends, we close() the stdout file descriptor, while the last line of
output (without newline trailing character) is not written yet.

So, the right thing to do might be not have a special test for stdout and
stderr, so that we don't close() those. Patch submitted for review.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/fortra
                   |                            |n/2005-05/msg00267.html
   Last reconfirmed|2005-05-22 22:09:34         |2005-05-23 17:12:29
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179



More information about the Gcc-bugs mailing list