From owner-freebsd-stable Sat Apr 8 17: 5:33 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rr.com (rdu25-22-143.nc.rr.com [24.25.22.143]) by hub.freebsd.org (Postfix) with ESMTP id 35EB137BD1C for ; Sat, 8 Apr 2000 17:05:30 -0700 (PDT) (envelope-from rhh@rr.com) Received: (from rhh@localhost) by rr.com (8.9.3/8.9.3) id UAA05084 for stable@freebsd.org; Sat, 8 Apr 2000 20:06:22 -0400 (EDT) (envelope-from rhh) Date: Sat, 8 Apr 2000 20:06:22 -0400 From: Randall Hopper To: stable@freebsd.org Subject: float-to-double core dump on 3.4R Message-ID: <20000408200622.A5031@ipass.net> References: <20000408193053.A3689@ipass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000408193053.A3689@ipass.net>; from aa8vb@ipass.net on Sat, Apr 08, 2000 at 07:30:53PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG #include 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