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 libfortran/19595] New: eor and advance="yes" should not mix


$ cat eor.f90
program main
  character*3 c
  open(12)
  write(12,'(A)') '123','456'
  rewind(12)
  read(12,'(A3)',advance='YES',eor=100) c
100 continue
end program main
$ gfortran eor.f90
$ ./a.out

Eor is only legal if advance='NO' is specified. It would be nice
if the above would generate an error.

        Thomas

-- 
           Summary: eor and advance="yes" should not mix
           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=19595


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