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/25289] New: Cannot handle record numbers large than huge(0_4)


malo /tmp $ cat a.f
      integer*1 abyte
      integer*8 n
      n = huge(0_4)
      n = 256 * n
      print *, n
      open(10,file="foo",recl=1,form='unformatted',access='direct')
      write(10,rec=n) abyte
      close(10)
      end
malo /tmp $ ifort a.f && ./a.out
          549755813632
malo /tmp $ ls -lh foo
-rw-r--r--  1 fx fx 2.0T Dec  7 00:29 foo
malo /tmp $ gfortran a.f && ./a.out
         549755813632
At line 7 of file a.f
Fortran runtime error: Record number must be positive


-- 
           Summary: Cannot handle record numbers large than huge(0_4)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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