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/25598] New: gfortran - Fortran runtime error: Invalid argument


gfortran is giving an error on this program, while g77 is happy with it -


[dranta:~/tests/gfortran-D] dir% g77 -o write18 write18.f
[dranta:~/tests/gfortran-D] dir% write18
[dranta:~/tests/gfortran-D] dir% gfortran -o write18 write18.f
[dranta:~/tests/gfortran-D] dir% write18
At line 9 of file write18.f
Fortran runtime error: Invalid argument
[dranta:~/tests/gfortran-D] dir% cat write18.f
      integer data
      data=-1
      open(unit=11,status='scratch',form='unformatted')
       write(11)data
       read(11,end=        1000 )data
 1000  continue
       backspace 11
       backspace 11
       read(11,end=        1001 )data
 1001  continue
       if(data.ne.-1)then
          write(6,*)data
          call abort
       endif
       close(11)
       end

[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin8.3.0
Configured with: ../gcc/configure --prefix=/Users/dir/gfortran
--enable-languages=c,f95
Thread model: posix
gcc version 4.2.0 20051229 (experimental)
[dranta:~/tests/gfortran-D] dir%


-- 
           Summary: gfortran - Fortran runtime error: Invalid argument
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
  GCC host triplet: powerpc-apple-darwin8.3.0


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


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