Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/16f799318c80df77

If I run the test case, I have the problem that for

      call writeit(11) ! write formatted STREAM
      call writeit(6)  ! write formatted to stdout

I do not get any output to STDOUT -- and a "flush(6)" does not help. And using

      ! call writeit(11) ! write formatted STREAM
      print *, 'Hello 1'
      call writeit(6)  ! write formatted to stdout
      flush(6)
      print *, 'Hello 2'
      flush(6)

I get only "Hello 1" and the table, but no "Hello 2". I have not tried to debug
this - the code might be wrong.

I have not checked for the other issues reported in the thread such as writing
NUL ('\0') characters instead of spaces (" "). The issue is allegedly related
to the handling of missing arguments, cf. also the quotes from Richard Maine et
al.

 * * *

Independent of those issues, one could consider implementing at some point a
  __gfortran_finalize()
function in libgfortran, which is called at the end of the program and when
STOP is encountered. (Possibly also for CALL EXIT().)


-- 
           Summary: I/O: libgfortran gets confused and stopps I/O
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to