Opened 6 years ago

Closed 6 years ago

#12209 closed Bugs (fixed)

cpp_bin_float: Subtraction of negative infinity from negative number produces negative infinity

Reported by: Michael Shatz Owned by: John Maddock
Milestone: Boost 1.62.0 Component: multiprecision
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

cpp_bin_float: subtraction of negative infinity from negative number produces negative infinity instead of positive infinity.

Platform: Mingw, gcc 5.3.0, x64. All optimization levels. Library version: newest files from github 1.60.0 also produces wrong result, but there it is nan rather than -inf

Attachments (1)

inf_test.cpp (449 bytes ) - added by Michael Shatz 6 years ago.
cpp_bin_float: -42 - -inf => -inf

Download all attachments as: .zip

Change History (2)

by Michael Shatz, 6 years ago

Attachment: inf_test.cpp added

cpp_bin_float: -42 - -inf => -inf

comment:1 by John Maddock, 6 years ago

Milestone: To Be DeterminedBoost 1.62.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.