This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] patch PR libfortran/19155
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Fran??ois-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 9 May 2005 07:45:23 -0700
- Subject: Re: [gfortran] patch PR libfortran/19155
- References: <427F3087.40705@lcp.u-psud.fr>
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