[Bug libfortran/19596] New: eor generates false error message with advance='NO'

Thomas dot Koenig at online dot de gcc-bugzilla@gcc.gnu.org
Sun Jan 23 20:56:00 GMT 2005


This is an error in the same field as PR 19595.

$ cat eor2.f90
program main
  character*3 c
  open(12)
  write(12,'(A)') '123','456'
  rewind(12)
  read(12,'(A3)',advance='NO',eor=100) c
  call abort
100 continue
end program main
$ gfortran eor2.f90
$ ./a.out
At line 6 of file eor2.f90
Fortran runtime error: EOR specification requires an ADVANCE specification of NO
$ gfortran -v ; gfortran -dumpmachine
Using built-in specs.
Configured with: ../gcc/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20050123 (experimental)
i686-pc-linux-gnu
$

-- 
           Summary: eor generates false error message with advance='NO'
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list