This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/12702] New: [gfortran] IO : list read


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [gfortran] IO : list read
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org

this should work (also if white space is tabs) :

   INTEGER a(7),i
   OPEN(15,FILE='fort.15')
   WRITE(15,*) "1       2 3             4"
   WRITE(15,*) ""
   WRITE(15,*) "5 6 7"
   CLOSE(15)
   OPEN(15,FILE='fort.15')
   READ(15,*) (a(i),i=1,7)
   CLOSE(15)
   DO i=1,7
      IF (a(i).ne.i) CALL ABORT()
   ENDDO
   END


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]