This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/25289] New: Cannot handle record numbers large than huge(0_4)
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2005 23:30:44 -0000
- Subject: [Bug libfortran/25289] New: Cannot handle record numbers large than huge(0_4)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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