[Issue 416] New: regression: unittest failure in phobos, math(501)
Don Clugston
dac at nospam.com.au
Mon Oct 9 23:24:08 PDT 2006
d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=416
>
> Summary: regression: unittest failure in phobos, math(501)
> Product: D
> Version: 0.169
> Platform: PC
> OS/Version: Windows
> Status: NEW
> Severity: normal
> Priority: P2
> Component: DMD
> AssignedTo: bugzilla at digitalmars.com
> ReportedBy: lio at lunesu.com
>
>
> Phobos build flags (win32.mak):
> CFLAGS=-g -mn -6 -r
> DFLAGS=-unittest -g -w
>
> unittest
> Error: AssertError Failure math(501)
>
> The offending line in std/math.d:
> assert(isNegZero(atanh(-real.infinity)));
>
> The assert was there in 0.168 but did not fail then.
I don't know how it passed before. The new compiler is correct!
That line should be changed to:
assert(isnan(atanh(-real.infinity)));
It was my mistake in the original code that I submitted.
More information about the Digitalmars-d-bugs
mailing list