[Bug libfortran/25289] New: Cannot handle record numbers large than huge(0_4)
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 6 23:30:00 GMT 2005
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
More information about the Gcc-bugs
mailing list