This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34482] FAIL: gfortran.dg/nan_4.f90 -O tests for errors
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2007 21:51:55 -0000
- Subject: [Bug fortran/34482] FAIL: gfortran.dg/nan_4.f90 -O tests for errors
- References: <bug-34482-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2007-12-15 21:51 -------
Subject: Re: FAIL: gfortran.dg/nan_4.f90 -O tests for errors
> ------- Comment #4 from burnus at gcc dot gnu dot org 2007-12-15 21:03 -------
> As jerry pointed out on IRC, the default integer size could be 8, which
> explains the result. Try instead:
>
> print *, real(z'FFFFFFFF', 4)
> print *, transfer(4294967295_8, 0.0_4)
> print '(z12)', transfer(real(z'FFFFFFFF',4), 1_4)
> print *, transfer(2143289344_8, 0.0_4)
> print '(z12)', transfer(real(z'7FC00000',4), 1_4)
> print *, real(z'7FC00000',4)
> END
With 4.2.3, the results for the above are:
4.2949673E+09 0.000000 4F800000 0.000000 4EFF8000 2.1432893E+09
The first version gave:
0.000000 4F800000 0.000000 4EFF8000 2.1432893E+09
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34482