[Bug libfortran/31706] New: recl specified for unformatted sequential file does not work
PROGRAM ReclBug OPEN (UNIT= 11, FILE= 'bla', ACCESS= 'SEQUENTIAL', & FORM= 'UNFORMATTED', RECL= 100, & STATUS= 'UNKNOWN', ACTION= 'WRITE', IOSTAT= iostat ) IF (iostat /= 0) STOP WRITE (11) 1,2,3 CLOSE (11, STATUS= 'KEEP') END PROGRAM ReclBug !! > gfortran recl-bug.f90 -static !! > ./a.out !! At line 10 of file recl-bug.f90 !! Fortran runtime error: I/O past end of record on unformatted file -- Summary: recl specified for unformatted sequential file does not work Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugs at wbfb dot de GCC host triplet: amd64 Linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31706
[Bug libfortran/31706] recl specified for unformatted sequential file does not work
--- Comment #2 from gcc-bugs at wbfb dot de 2007-04-25 22:16 --- (In reply to comment #1) > What is your gfortran version (gfortran -v)? > > I cannot repoduce it with neither -static nor without using > gfortran 4.1.3 20070413 (prerelease) > and 4.3.0 20070425 (experimental) > under x86_64-unknown-linux-gnu > gfortran -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: /projects/tob/gcc-4_2-branch/configure --enable-languages=c,fortran --prefix=/projects/tob/gcc-4.2 Thread model: posix gcc version 4.2.0 20070301 (prerelease) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31706