Subject: [Boost-bugs] [Boost C++ Libraries] #5268: mpl::int_<INT_MIN> fails to compile under g++-4.6 although g++-4.5 works.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-05 17:31:29
#5268: mpl::int_<INT_MIN> fails to compile under g++-4.6 although g++-4.5 works.
---------------------------------------------------+------------------------
Reporter: Stirling Westrup <swestrup@â¦> | Owner: agurtovoy
Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpl
Version: Boost 1.46.0 | Severity: Problem
Keywords: int_ INT_MIN |
---------------------------------------------------+------------------------
Under Debian Sid with a 2.6.36 AMD_64 kernel, and g++-4.6, the following
code:
{{{
#include <climits>
#include <boost/mpl/int.hpp>
boost::mpl::int_<INT_MIN> foo;
}}}
Produces the errors:
{{{
/usr/local/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation
of âmpl_::int_<-0x00000000080000000>â:
test_test.cpp:8:27: instantiated from here
/usr/local/include/boost/mpl/aux_/integral_wrapper.hpp:73:96: error:
â2147483647â is not a valid template argument for type âintâ because it is
a non-constant expression
/usr/local/include/boost/mpl/aux_/integral_wrapper.hpp:73:96: error:
overflow in constant expression [-fpermissive]
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5268> 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:05 UTC