[Bug fortran/24945] New: calling two open statements (same unit) without close fails
milan at cmm dot ki dot si
gcc-bugzilla@gcc.gnu.org
Sat Nov 19 19:22:00 GMT 2005
I am trying to open the same file twice. This works in g77, but fails in
gfortran-4.1-20051112 snapshot
This is the program:
integer iun,irecl
iun=1
irecl=5
open(unit=iun,file='uu',status='unknown',access='direct',
$ form='unformatted',recl=8*irecl)
C close(unit=iun)
open(unit=iun,file='uu',status='unknown',access='direct',
$ form='unformatted',recl=8*irecl)
end
If I use close it works, but as you can guess this is a part of larger program
so I don't want to know where to put this close statement!
--
Summary: calling two open statements (same unit) without close
fails
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: milan at cmm dot ki dot si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24945
More information about the Gcc-bugs
mailing list