[Bug fortran/38122] "file already opened in another unit" error when opening /dev/null or /dev/tty twice
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 15 15:00:00 GMT 2008
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-11-15 14:58 -------
Well I managed to read that thread about 90% through without falling to sleep.
One point made there is that gfortran should not reposition the file after a
reopen as the default position= specifier should be ASIS.
I will check into this one point.
If anyone sees any other Fortran Standard specifics we may be missing, let me
know so I can fix those.
I do believe that one could write a standard conforming "layer" in Fortran to
handle all of the OPs issues. Obviously one would have to get creative to do
it.
The other thing that was not mentioned is ASYNCHRONOUS I/O which might be the
real solution here. I/O calls would be queued in and allow the application to
track status with the ID.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38122
More information about the Gcc-bugs
mailing list