[Boost-bugs] [Boost C++ Libraries] #7878: Bug in integer division (assertion failed)

Subject: [Boost-bugs] [Boost C++ Libraries] #7878: Bug in integer division (assertion failed)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-10 22:15:53


#7878: Bug in integer division (assertion failed)
--------------------------------------------------+-------------------------
 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: division |
--------------------------------------------------+-------------------------
 {{{
 boost::multiprecision::cpp_int a("79228162477370849454714781695");
 a /= 0xFFFFFFFF;
 }}}

 This code generates the following runtime error:
 {{{
 Assertion failed: r.compare(y) < 0, file
 H:\prg\boost_1_53_0_beta1/boost/multiprecision/cpp_int/divide.hpp, line
 438
 }}}

 Tested on MinGW, GCC 4.7.1

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7878>
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:11 UTC