This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/25116] [regression wrt g77] namelist read from non-opened file
- From: "jvdelisle at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2005 01:40:50 -0000
- Subject: [Bug libfortran/25116] [regression wrt g77] namelist read from non-opened file
- References: <bug-25116-109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jvdelisle at verizon dot net 2005-11-28 01:40 -------
Subject: Re: [regression wrt g77] namelist read from
non-opened file
fxcoudert at gcc dot gnu dot org wrote:
> ------- Comment #2 from fxcoudert at gcc dot gnu dot org 2005-11-27 23:14 -------
> (In reply to comment #1)
>
>>At line 2 of file nml.f
>>Fortran runtime error: End of file
>
>
> Debugging shows that the bytes_left field of the stream is not set correctly
> (2338621003140048416 instead of 9223372036854775807). It is set in transfer.c,
> line 1143.
>
>
If you mean this:
memcpy (&i, p, sizeof (gfc_offset));
dtp->u.p.current_unit->bytes_left = i;
Maybe it should be a -=
Jerry
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25116