<limits> and Cygwin

Benjamin Kosnik bkoz@cygnus.com
Tue Aug 31 16:34:00 GMT 1999


Gaby's the person with the definitive say on this, but it looks like the 
generated specializations for floating types are incorrect. 

This is also a problem under a linux native build: The
generated std_limits.h file has these values, which seem off if you
take a look at the example for floats in section 18.2.1.5 of the
standard:

        static const bool has_infinity = false;
        static const bool has_quiet_NaN = false;
        static const bool has_signaling_NaN = false;
        static const bool has_denorm_loss = false;
        static const bool is_iec559 = false;
        static const bool traps = false;
        static const bool tinyness_before = false;


Gaby?

 > Using gcc 2.95 for Cygwin under Win NT 4, I cannot compile code
> including <limits>. The problem lies in std_limits.h, in the definition
> of numeric_limits<long double>.min, where it complains about a union:

Odd. Can you post the generated specialization for numeric_limits<long 
double> from your std_limits.h file?

-Benjamin


More information about the Libstdc++ mailing list