stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject Re: [jira] Created: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different binary representation of "long double ld1 = 0" and "long double ld2 = 0."
Date Tue, 15 Apr 2008 18:22:05 GMT
From: Martin Sebor [mailto:sebor@roguewave.com]
To: dev@stdcxx.apache.org
Subject: Re: [jira] Created: (STDCXX-862) [Sun C++ 5.9] 0.char test failed due to different
binary representation of "long double ld1 = 0" and "long double ld2 = 0."

> Farid Zaripov (JIRA) wrote:
> > [Sun C++ 5.9] 0.char test failed due to different binary representation of "long
double ld1 = 0" and "long double ld2 = 0."

> This feels like compiler bug, wouldn't you say?

  I don't know. The both long doubles behaves as zero. The only comparing them with memcmp()
gives the wrong result.

Farid.

 

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message