libstdc++/5527: incorrect support for infinity in `numeric_limits<double|float>' on Linux/Intel
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Wed Jan 30 04:48:00 GMT 2002
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
More information about the Gcc-prs
mailing list