Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2000 19:30:53 -0400
From:      Randall Hopper <aa8vb@ipass.net>
To:        stable@freebsd.org
Subject:   float-to-double core dump on 3.4R
Message-ID:  <20000408193053.A3689@ipass.net>

next in thread | raw e-mail | index | archive | help
     #include <float.h>

     main()
     {
        float  f = FLT_MAX;
        double d;
        f = f * 2;
        d = f;
     }

Delete the "d=f" line and it doesn't core.  Put it in and it does
(floating-point exception).

From this it appears there may be a bug in the float-to-double promotion
when f is Inf (or, at least I'd expect that f is Inf).

Any comments?  If not, I'll file the PR.

Thanks,

Randall Hopper


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000408193053.A3689>