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

Reply via email to