------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  
2005-03-07 01:31 -------
Subject: Re:  FAIL: 26_numerics/complex/pow.cc execution test

> We have log(x) == -inf for x == 0+.  The exp call is returning 0+
> but the argument isn't -inf.  It's -5.9923104495410517e+307.  -inf
> is -1.7976931348623157e+308.

Sorry, log(x) == -HUGE_VALUE for x == 0+, not -INFINITY.  This is
also the documented behavior for hpux11.  The HP log function doesn't
set ERANGE when x is 0.

SUSV2 also specifies -HUGE_VALE and that ERANGE "may be" set.

Dave


-- 


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

Reply via email to