[Boost-bugs] [Boost C++ Libraries] #13617: Eternal loop when assigning infinity or NaN

Subject: [Boost-bugs] [Boost C++ Libraries] #13617: Eternal loop when assigning infinity or NaN
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-06-25 10:48:31


#13617: Eternal loop when assigning infinity or NaN
------------------------------+---------------------
 Reporter: PieterB@… | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.67.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 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?

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13617>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-06-25 10:53:58 UTC