Comments (10)
Since I complained about your proposed fix, I'll take a look at this.
from dynamic_bitset.
I'm not getting these warnings with clang. I'll try with gcc.
from dynamic_bitset.
b2 toolset=gcc cxxflags="-std=c++17 -W -Wall -Werror" -j 32
dyn_bitset_unit_tests2.cpp:285:33: von hier erfordert
../../../boost/dynamic_bitset/dynamic_bitset.hpp:1953:57: Fehler: left shift of negative value [-Werror=shift-negative-value]
block_type const mask = (~static_cast(0) << extra_bits);
gcc -v: gcc-Version 7.2.1
from dynamic_bitset.
Must be a new warning with 7.2; I don't get them with 7.1.
/me Off to install a newer version....
from dynamic_bitset.
got this with gcc-6.3.0 too using the develop branch
from dynamic_bitset.
Ok - c++17
is the key.
from dynamic_bitset.
b2 toolset=gcc cxxflags="-std=c++11 -W -Wall -Werror" -j 32
produces the same error (Arch Linux, gcc-7.2.1)
from dynamic_bitset.
Fixed in d3eb4fa
from dynamic_bitset.
fix works, thx
from dynamic_bitset.
I just discovered this same bug with UBSAN:
dynamic_bitset.hpp:1943:55: runtime error: left shift of negative value -1
Thank you for fixing this!
from dynamic_bitset.
Related Issues (20)
- Valgrind failures in test4 with wchar_t support enabled HOT 4
- Adding hardware supported popcount (and other functions) HOT 2
- Release notes for 1.69.0 HOT 2
- New range based set methods have caused ambiguity HOT 5
- Hardware supported popcount breaks on Windows with CPUs that don't support SSE4 HOT 11
- need to use this as a key in an unordered_map HOT 8
- MSVC hardware-assisted popcount implementation
- Release Notes for 1.70.0 HOT 1
- gcc-4.8 on xenial fails unit test 4 (streaming)
- Coverity flagged issue (investigate) HOT 1
- Release Notes for 1.71.0 HOT 1
- std::vector<boost::dynamic_bitset<>>unable to free memory HOT 5
- dynamic_bitset cannot be used in a parallel program HOT 3
- boost/dynamic_bitset/dynamic_bitset.hpp:111:20: -Wdeprecated-copy warning
- Release notes for 1.80
- Hide internals (dispatch_init(), init_from_block_range(), m_append())
- Possible improvement for is_proper_subset_of
- It seems that the latest develop branch has 'stdext::hash_value' compile failure
- Make buffer_type changeable
- Missing change in Boost 1.80.0 Unix distributable as opposed to the Windows one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic_bitset.