Subject: [Boost-bugs] [Boost C++ Libraries] #6546: ratio_arithmetic/ratio_add_pass fails to compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-11 18:21:04
#6546: ratio_arithmetic/ratio_add_pass fails to compile
----------------------------------+-----------------------------------------
Reporter: smr@⦠| Owner: viboes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: ratio
Version: Boost Release Branch | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
Boost.Ratio test fails on debian linux with gcc 4.6.
{{{
gcc.compile.c++
../../../bin.v2/libs/ratio/test/ratio_add_pass.test/gcc-4.6/debug/ratio_add_pass.o
In file included from ../../../boost/mpl/integral_c.hpp:32:0,
from ../../../boost/ratio/detail/mpl/abs.hpp:15,
from ../../../boost/ratio/ratio.hpp:36,
from ratio_arithmetic/ratio_add_pass.cpp:16:
../../../boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âmpl_::integral_c<long int, 9223372036854775807l>â:
../../../boost/ratio/detail/mpl/abs.hpp:38:29: instantiated from
âboost::mpl::abs_tag<mpl_::integral_c<long int, 9223372036854775807l> >â
../../../boost/ratio/detail/mpl/abs.hpp:44:8: instantiated from
âboost::mpl::abs<mpl_::integral_c<long int, 9223372036854775807l> >â
../../../boost/ratio/detail/mpl/abs.hpp:58:8: instantiated from
âboost::mpl::abs_c<long int, 9223372036854775807l>â
../../../boost/ratio/ratio.hpp:79:74: instantiated from âconst intmax_t
boost::ratio<9223372036854775807l, 1l>::ABS_Nâ
../../../boost/ratio/ratio.hpp:81:5: instantiated from
âboost::ratio<9223372036854775807l, 1l>â
../../../boost/ratio/detail/overflow_helpers.hpp:227:95: instantiated
from âconst intmax_t
boost::ratio_detail::ratio_add<boost::ratio<9223372036854775807l, 1l>,
boost::ratio<-0x00000000000000001l, 1l> >::gcd_n1_n2â
../../../boost/ratio/detail/overflow_helpers.hpp:243:18: instantiated
from âboost::ratio_detail::ratio_add<boost::ratio<9223372036854775807l,
1l>, boost::ratio<-0x00000000000000001l, 1l> >â
../../../boost/ratio/ratio.hpp:136:8: instantiated from
âboost::ratio_add<boost::ratio<9223372036854775807l, 1l>,
boost::ratio<-0x00000000000000001l, 1l> >â
ratio_arithmetic/ratio_add_pass.cpp:70:37: instantiated from here
../../../boost/mpl/aux_/integral_wrapper.hpp:72:96: warning: integer
overflow in expression [-Woverflow]
../../../boost/mpl/aux_/integral_wrapper.hpp:72:96: error: overflow in
constant expression [-fpermissive]
../../../boost/mpl/aux_/integral_wrapper.hpp:72:96: note: in template
argument for type âlong intâ
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6546> 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:09 UTC