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: [gfortran] patch PR libfortran/19155


On Mon, May 09, 2005 at 11:42:31AM +0200, Fran??ois-Xavier Coudert wrote:
> I propose this patch to fix PR libfortran/19115. With this patch, the I/O 
> library accepts 'E+00' as a valid real number (with value 0.0). The 
> standard says it is not a valid real number, but doesn't require an error.
> 
> Reasons for this choice: g77 accepts it, as well as numerous other Fortran 
> compilers (Intel, Portland, Sun, IBM). It is even part of the NIST 
> testsuite (one of the last NIST failures for gfortran).
> 
> Regtested on i386-linux. OK for mainline and 4.0?

> 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
> 
> 	PR libfortran/19155
> 	* io/read.c (read_f): Accept 'e', 'E', 'd' and 'D' as first
> 	non-blank characters of a real number.
> 


Can you make this fail with -std=f95?  The behavior
is not standard conforming.

-- 
Steve


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