[Boost-bugs] [Boost C++ Libraries] #6846: Clang compilation error on Darwin 64-bit

Subject: [Boost-bugs] [Boost C++ Libraries] #6846: Clang compilation error on Darwin 64-bit
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-30 16:05:54


#6846: Clang compilation error on Darwin 64-bit
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: Boost 1.49.0 | Component: xpressive
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 While compiling Boost with clang (verson 3.2-trunk) on Darwin in 64-bit
 mode, I get:

 {{{
 ./boost/xpressive/traits/cpp_regex_traits.hpp:92:42: error: non-type
 template argument evaluates to 9223372036854775808, which cannot be
 narrowed to type 'long' [-Wc++11-narrowing]
         BOOST_MPL_ASSERT_RELATION(1, !=, Out);
                                          ^
 ./boost/mpl/assert.hpp:300:68: note: expanded from macro
 'BOOST_MPL_ASSERT_RELATION'
 BOOST_MPL_ASSERT_RELATION_IMPL(BOOST_MPL_AUX_PP_COUNTER(), x, rel, y) \
                                                                    ^
 ./boost/mpl/assert.hpp:270:19: note: expanded from macro '\
 BOOST_MPL_ASSERT_RELATION_IMPL'
                 , y \
                   ^
 ./boost/mpl/assert.hpp:56:58: note: expanded from macro '\
 BOOST_MPL_AUX_ASSERT_CONSTANT'
 # define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
                                                          ^
 ./boost/xpressive/traits/cpp_regex_traits.hpp:138:43: note: in
 instantiation of template class
 'boost::xpressive::detail::unused_mask<9223372036855166720,
 9223372036854775808, false>' requested here
     umaskex_t const non_std_ctype_blank = unused_mask<all_ctype_masks |
 non_std_ctype_underscore>::value;
                                           ^
 ./boost/xpressive/traits/cpp_regex_traits.hpp:92:42: error: non-type
 template argument evaluates to 9223372036854775808, which cannot be
 narrowed to type 'long' [-Wc++11-narrowing]
         BOOST_MPL_ASSERT_RELATION(1, !=, Out);
                                          ^
 ./boost/mpl/assert.hpp:300:68: note: expanded from macro
 'BOOST_MPL_ASSERT_RELATION'
 BOOST_MPL_ASSERT_RELATION_IMPL(BOOST_MPL_AUX_PP_COUNTER(), x, rel, y) \
                                                                    ^
 ./boost/mpl/assert.hpp:270:19: note: expanded from macro '\
 BOOST_MPL_ASSERT_RELATION_IMPL'
                 , y \
                   ^
 ./boost/mpl/assert.hpp:56:58: note: expanded from macro '\
 BOOST_MPL_AUX_ASSERT_CONSTANT'
 # define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
                                                          ^
 }}}

 Please, fix.

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