Issue Details (XML | Word | Printable)

Key: STDCXX-10
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library
STDCXX-8

LDBL_MIN et al need a test

Created: 02/Aug/05 12:39 PM   Updated: 14/May/08 04:54 PM
Return to search
Component/s: Tests
Affects Version/s: 4.2.0, 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 8h
Original Estimate - 8h
Remaining Estimate: 8h
Remaining Estimate - 8h
Time Spent: Not Specified
Remaining Estimate - 8h

Environment: all


 Description  « Hide
A test needs to be written for STDCXX-8 (and more generally, for the rest of <float.h> and <cfloat> macros). Here's what it might look like:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200508.mbox/%3c42EEE4B3.20503@roguewave.com%3e

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 25/Aug/07 09:47 PM
Lowered Priority and rescheduled for 4.2.1.

Farid Zaripov added a comment - 02/Apr/08 03:28 PM
I'm not sure that I understand the problem in STDCXX-8.
The FLOAT.cpp config test print's LDBL_MIN macro value as #define _RWSTD_LDBL_MIN %LDBL_MIN% (%LDBL_MIN% is the numerical value of the corresponding macro). Then in include/ansi/float.h we #undefine LDBL_MIN and #define LDBL_MIN as _RWSTD_LDBL_MIN for EDG compiler or not redefine LDBL_MIN for other compilers. So what the difference between LDBL_MIN and _RWSTD_LDBL_MIN? And how _RWSTD_LDBL_MIN macro (which is copy of LDBL_MIN) caused floating point underflow on icc 8.1?

Martin Sebor added a comment - 02/Apr/08 03:43 PM
The block in float.h is only for EDG eccp on Linux (glibc), not for Intel C++.

If I had to guess, the warning pointed out in STDCXX-10 (and similarly in STDCXX-565) is because of some small difference between the value of _RWSTD_LDBL_MIN printed out by FLOAT.h and what the compiler considers to be LDBL_MIN.


Farid Zaripov added a comment - 23/Apr/08 05:25 PM
Defer the issue to the next release.