Issue Details (XML | Word | Printable)

Key: STDCXX-706
Type: Bug Bug
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

[HP aCC 6.15/HP-UX/IPF] 18.limits.traps fails most assertions

Created: 24/Jan/08 05:18 AM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: Tests
Affects Version/s: 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 4h
Time Spent - 0.52h Remaining Estimate - 4h
Time Spent: 0.52h
Time Spent - 0.52h Remaining Estimate - 4h

Environment: HP aCC 6.15/HP-UX/IPF

Severity: Incorrect Behavior


 Description  « Hide
When compiled with HP aCC 6 on HP-UX/IPF with optimization on, the test 18.limits.traps test fails 13 out of 16 assertions. Suspect a problem in the test since the library produces consistent results irrespective of optimization but the test expects different results depending on whether optimization is enabled or not.
$ ./18.limits.traps -q
# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<bool>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 174

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<char>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 177

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<signed char>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 178

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<unsigned char>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 179

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<short>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 181

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<unsigned short>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 182

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<int>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 183

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<unsigned int>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 184

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 185

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<unsigned long>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 186

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<long long>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 189

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<unsigned long long>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 190

# ASSERTION (S7) (4 lines):
# TEXT: numeric_limits<wchar_t>::traps == false, got true
# CLAUSE: lib.numeric.limits.members
# LINE: 194

# +-----------------------+----------+----------+----------+
# | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
# +-----------------------+----------+----------+----------+
# | (S1) INFO             |       17 |       17 |       0% |
# | (S7) ASSERTION        |       13 |       16 |      18% |
# +-----------------------+----------+----------+----------+


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor logged work - 24/Jan/08 05:18 AM
Time Worked: 0.5h
Preliminary analysis.
Martin Sebor made changes - 24/Jan/08 05:19 AM
Field Original Value New Value
Time Spent 0.5h [ 1800 ]
Remaining Estimate 2h [ 7200 ] 1.5h [ 5400 ]
Martin Sebor made changes - 24/Jan/08 05:19 AM
Assignee Martin Sebor [ sebor ]
Martin Sebor made changes - 24/Jan/08 05:19 AM
Status Open [ 1 ] In Progress [ 3 ]
Martin Sebor added a comment - 24/Jan/08 05:23 AM
The 18.numeric.special.int test also fails 13 assertions, most likely for the same reason:
$ ./18.numeric.special.int -q
# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<bool>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<char>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<signed char>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<unsigned char>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<short>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<unsigned short>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<int>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<unsigned int>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<long>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<unsigned long>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<_RWSTD_LONG_LONG>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<unsigned _RWSTD_LONG_LONG>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# ASSERTION (S7) (4 lines):
# TEXT: std::numeric_limits<wchar_t>::traps == 0, got true
# CLAUSE: numeric.special
# LINE: 587

# +-----------------------+----------+----------+----------+
# | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
# +-----------------------+----------+----------+----------+
# | (S1) INFO             |       29 |       29 |       0% |
# | (S7) ASSERTION        |       13 |      434 |      97% |
# +-----------------------+----------+----------+----------+

Martin Sebor made changes - 19/Mar/08 12:45 AM
Status In Progress [ 3 ] Open [ 1 ]
Martin Sebor added a comment - 19/Mar/08 12:45 AM
Reassigned to Brad.

Martin Sebor made changes - 19/Mar/08 12:45 AM
Assignee Martin Sebor [ sebor ] Eric Lemings [ elemings ]
Eric Lemings logged work - 04/Apr/08 04:28 PM
Time Worked: 0.02h
<No comment>
Eric Lemings made changes - 04/Apr/08 04:28 PM
Time Spent 0.5h [ 1800 ] 0.52h [ 1860 ]
Remaining Estimate 1.5h [ 5400 ] 4h [ 14400 ]
Martin Sebor added a comment - 23/Apr/08 05:21 AM
Deferred until 4.2.2.

Martin Sebor made changes - 23/Apr/08 05:21 AM
Fix Version/s 4.2.2 [ 12313096 ]
Fix Version/s 4.2.1 [ 12312690 ]
Martin Sebor made changes - 01/May/08 01:14 PM
Assignee Eric Lemings [ elemings ] Martin Sebor [ sebor ]
Martin Sebor made changes - 02/May/08 01:21 AM
Affects Version/s 4.2.1 [ 12312690 ]
Affects Version/s trunk [ 12312676 ]
Martin Sebor made changes - 02/Dec/08 03:05 AM
Assignee Martin Sebor [ sebor ]