[Boost-bugs] [Boost C++ Libraries] #8160: multiprecision: Number is not assinned after dividing zero by something.

Subject: [Boost-bugs] [Boost C++ Libraries] #8160: multiprecision: Number is not assinned after dividing zero by something.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-23 20:24:24


#8160: multiprecision: Number is not assinned after dividing zero by something.
--------------------------------------------------+-------------------------
 Reporter: Stepan Podoskin <stepik-777@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 {{{

 #include <iostream>
 #include <boost/multiprecision/cpp_int.hpp>
 using boost::multiprecision::cpp_int;

 int main()
 {
     cpp_int a = 1;
     a = 0/cpp_int("1");
     std::cout << "a = " << a << "\n"; // a = 1
     return 0;
 }

 }}}
 divide.hpp: line 341 says // All the limbs in x are zero, so is the
 result:

 However, result is not assigned to zero.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8160>
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 : 2017-02-16 18:50:12 UTC