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/25116] [regression wrt g77] namelist read from non-opened file



------- 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


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