------- Comment #5 from kargl at gcc dot gnu dot org  2007-09-07 16:12 -------

If this is case 2
  real x
  x = huge(1.0)
  x = nearest(x,1.0)
  end

and this is case 1

  real x
  x = nearest(huge(1.0),1.0)
  end

then the answers are

> BTW is it normal that gfortran_nearest_r4 (3.4...4e+38, 1.0e+0) is not
> computed at the optimized level in the second case, while it is done
> in the first one?

Yes.

> Is this a bug?

No.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33296

Reply via email to