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 fortran/34482] FAIL: gfortran.dg/nan_4.f90 -O tests for errors



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


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