Boost C++ Libraries: Ticket #6846: Clang compilation error on Darwin 64-bit https://svn.boost.org/trac10/ticket/6846 <p> While compiling Boost with clang (verson 3.2-trunk) on Darwin in 64-bit mode, I get: </p> <pre class="wiki">./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&lt;9223372036855166720, 9223372036854775808, false&gt;' requested here umaskex_t const non_std_ctype_blank = unused_mask&lt;all_ctype_masks | non_std_ctype_underscore&gt;::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 } ^ </pre><p> Please, fix. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6846 Trac 1.4.3 Eric Niebler Tue, 01 May 2012 06:13:51 GMT <link>https://svn.boost.org/trac10/ticket/6846#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6846#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78286" title="replace MPL assert with static assert since it's problematic in C++11, ...">[78286]</a>) replace MPL assert with static assert since it's problematic in C++11, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6846" title="#6846: Bugs: Clang compilation error on Darwin 64-bit (closed: fixed)">#6846</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Tue, 01 May 2012 06:31:05 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/6846#comment:2 https://svn.boost.org/trac10/ticket/6846#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Since I can't reproduce this bug, I would appreciate it if you could test trunk to see if the problem is fixed there. Thanks. </p> Ticket Eric Niebler Wed, 02 May 2012 07:04:58 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6846#comment:3 https://svn.boost.org/trac10/ticket/6846#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78303" title="merge [78286] from trunk, fixes #6846">[78303]</a>) merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/78286" title="replace MPL assert with static assert since it's problematic in C++11, ...">[78286]</a> from trunk, fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6846" title="#6846: Bugs: Clang compilation error on Darwin 64-bit (closed: fixed)">#6846</a> </p> Ticket anonymous Wed, 02 May 2012 15:00:55 GMT <link>https://svn.boost.org/trac10/ticket/6846#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6846#comment:4</guid> <description> <p> Replacing MPL assert does the trick. Thanks. </p> </description> <category>Ticket</category> </item> </channel> </rss>