------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2005-02-11 17:44 ------- You are probably right that my example does not conform to the standard, because I don't use equilance() and I whipped up the example in a minute without inspection of its conformance.
Anyway, if you want to make gfortran accept your code, constant folding is done in arith.c. I suggest that you add a -fallow_inf_nan option to gfortran and make the appropriate modifications to arith.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19904