Issue Details (XML | Word | Printable)

Key: STDCXX-423
Type: Bug Bug
Status: Open Open
Priority: Trivial Trivial
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

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

LIMITS.cpp assumes integers with no padding bits

Created: 22/May/07 03:59 PM   Updated: 18/Mar/08 05:51 PM
Return to search
Component/s: Configuration
Affects Version/s: 4.1.2, 4.1.3, 4.2.0
Fix Version/s: 4.3.0

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

Environment: unknown

Severity: Incorrect Behavior


 Description  « Hide
The LIMITS.cpp config test tries to determine exact-width integer typese (the equivalent of things such as int32_t) but it fails to consider the fact that all integer types other than unsigned char may have padding bits that contribute to their size but not to their range (i.e., there may be two or more distinct bit patters that represent the same value, or bit patterns that do not correspond to any value at all). This is only an issue in theory since we know of no architecture with such a representation.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 23/Aug/07 03:59 AM
Scheduled for sometime after 4.2.

Martin Sebor added a comment - 12/Feb/08 11:09 PM
For some background on the issue read this discussion on Padding Bits on comp.lang.c.

Martin Sebor added a comment - 13/Mar/08 04:15 PM
See the following thread for a patch a discussion:
http://www.nabble.com/-PATCH--STDCXX-423-tt15191643.html

Martin Sebor added a comment - 18/Mar/08 05:51 PM
Set Severity to Incorrect Behavior (in theory).
Set estimate.
Deferred until 4.3.