Opened 4 years ago

Closed 4 years ago

#13617 closed Bugs (obsolete)

Eternal loop when assigning infinity or NaN

Reported by: PieterB@… Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.67.0 Severity: Problem
Keywords: Cc:

Description

The following statement gets into an eternal loop in release builds (where NDEBUG is defined):

boost::multiprecision::int128_t inf_i(std::numeric_limits<double>::infinity());

This is caught by a BOOST_ASSERT otherwise. Same is true for NaN.

Question: should the assignment not simply assign 'infinity' instead (or throw an exception)n in such cases?

Change History (1)

comment:1 by John Maddock, 4 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.