I think it's gcc 3.3.5 and x86 specific. I'm not positive about the .5
though. I've been building on darwin ppc with 3.3 and it's fine, and
it fails on openbsd too. But it's also successful on gcc 4.1. I've
addressed it with using sprintf, since 1.22461e-16 is close enough to
0.000000 for me. But openbsd still gets one failure, a +-0.0 problem,
which is already present in other areas.
On Mar 18, 2006, at 1:32 PM, Leopold Toetsch (via RT) wrote:
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #38757]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38757 >
With gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) I get:
Failed Test Stat Wstat Total Fail Failed List of Failed
-----------------------------------------------------------------------
-
-------
t/pmc/complex.t 2 512 32 2 6.25% 27-28
OTOH gcc 4.1 works fine. Both on x86/linux, 32-bit.
$ perl -Ilib t/pmc/complex.t
...
not ok 27 - exp of complex numbers
# Failed test (t/pmc/complex.t at line 818)
# got: '0.540302+0.841471i
# -0.416147+0.909297i
# -3.07493+6.71885i
# 0+1.22461e-16i
# '
# expected: '0.540302+0.841471i
# -0.416147+0.909297i
# -3.07493+6.71885i
# 0+0i
# '
...
leo