[Boost-bugs] [Boost C++ Libraries] #6546: ratio_arithmetic/ratio_add_pass fails to compile

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