Description of problem: Compiler errors (well, I use -Werror) when compiling an application that uses boost.multiprecision. Version-Release number of selected component (if applicable): boost-1.60.0-5.fc24.x86_64 How reproducible: Steps to Reproduce: 1. Compile anything that uses boost.multiprecision (like https://github.com/scylladb/scylla) 2. Watch it break. Actual results: /usr/include/boost/multiprecision/cpp_int.hpp:193:46: error: right operand of shift expression ‘(1u << 63u)’ is >= than the precision of the left operand [-fpermissive] BOOST_STATIC_CONSTANT(limb_type, sign_bit_mask = 1u << (limb_bits - 1)); ~~~^~~~~~~~~~~~~~~~~~ /usr/include/boost/multiprecision/cpp_int.hpp:416:46: error: right operand of shift expression ‘(1u << 63u)’ is >= than the precision of the left operand [-fpermissive] BOOST_STATIC_CONSTANT(limb_type, sign_bit_mask = 1u << (limb_bits - 1)); ~~~^~~~~~~~~~~~~~~~~~ /usr/include/boost/multiprecision/cpp_int.hpp:568:46: error: right operand of shift expression ‘(1u << 63u)’ is >= than the precision of the left operand [-fpermissive] BOOST_STATIC_CONSTANT(limb_type, sign_bit_mask = 1u << (limb_bits - 1)); ~~~^~~~~~~~~~~~~~~~~~ Expected results: Clean compile. Additional info: Can be trivially fixed by casting 1u to limb_type.
I can post a patch, if it helps.
Alternatively, f9c8f9ec091ad232c0a291904f7839d665d098e0 from the boost/libs/multiprecision submodule fixes the problem.
I can confirm https://github.com/boostorg/multiprecision/commit/f9c8f9ec091ad232c0a291904f7839d665d098e0 fixes the problem.
(In reply to Asias He from comment #3) > I can confirm > > https://github.com/boostorg/multiprecision/commit/ > f9c8f9ec091ad232c0a291904f7839d665d098e0 > > fixes the problem. I'll backport that, thanks.
Fixed in rawhide, f24 to follow ...
There's a new build for f24 at http://koji.fedoraproject.org/koji/buildinfo?buildID=776354 but I don't think it can be pushed to updates-testing at this point.
Installed boost-devel from that build; it fixes my problem. Thanks a lot.
boost-1.60.0-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0474072244
boost-1.60.0-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0474072244
boost-1.60.0-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.