This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/5527: incorrect support for infinity in `numeric_limits<double|float>' on Linux/Intel


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]