This is the mail archive of the gcc-patches@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]

Re: [Patch, libgfortran] Fix bug triggered by NIST fm908.for - x-formattingbeyond eor during read


Paul Thomas wrote:
> --- 767,775 ----
>     int n;
>
>     n = f->u.n;
> !   if (f->format == FMT_X)
> !     n = (n > (int)current_unit->bytes_left)
> ! 	  ? (int)current_unit->bytes_left : n;

Any reason not to use MIN?  Otherwise ok.

> 2005-07-10 Paul Thomas  <pault@gcc.gnu.org>
> 
> 	* read.c (read_complex): Prevent X formatting during reads
> 	from going beyond EOR to fix NIST fm908.for failure.
> 
> 2005-07-10  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	* gfortran.dg/past_eor.f90: New.


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