This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12043] New: long double calcluation seems broken
- From: "jlquinn at optonline dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2003 01:26:21 -0000
- Subject: [Bug c++/12043] New: long double calcluation seems broken
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12043
Summary: long double calcluation seems broken
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jlquinn at optonline dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
While working on improved printf for libstdc++, I came across what appears to be
a problem with long double math. In the attached code, I THINK that x.d is a
valid long double (96 bits of which 80 are actually used). The test case cam
because I was trying to generate random long doubles to compare results and
getting problems.
The problem can be seen in the value of q1.