This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5527: incorrect support for infinity in `numeric_limits<double|float>' on Linux/Intel
- From: paolo at gcc dot gnu dot org
- To: coola at ngs dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 30 Jan 2002 12:48:15 -0000
- Subject: Re: libstdc++/5527: incorrect support for infinity in `numeric_limits<double|float>' on Linux/Intel
- Reply-to: paolo at gcc dot gnu dot org, coola at ngs dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: incorrect support for infinity in `numeric_limits<double|float>' on Linux/Intel
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: paolo
Responsible-Changed-When: Wed Jan 30 04:48:14 2002
Responsible-Changed-Why:
Gaby, I'm assigning this to you as the <limits> maintainer.
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Wed Jan 30 04:48:14 2002
State-Changed-Why:
This is the testcase at issue:
#include <iostream>
#include <limits>
int main()
{
if (std::numeric_limits<double>::has_infinity)
std::cout << std::numeric_limits<double>::infinity() << '\n';
return 0;
}
In my opinion, returning char(), being has_infinity false,
cannot be considered wrong from the point of view of
standard conformance. However, on i686-linux, we could
expect has_infinity == true and infinity returning "inf",
right?
Cheers, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5527