[Bug c++/125656] "warning: left shift count >= width of type [-Wshift-count-overflow]" inaccurate
mattreecebentley at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 8 07:55:03 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125656
--- Comment #6 from Matt Bentley <mattreecebentley at gmail dot com> ---
Created attachment 64670
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64670&action=edit
Code
Here's the code. I modified the relevant section so it'll trigger the warning
regardless of the C++ version or bitset size.
Function causing the issue is 'set_overflow_to_one'
More information about the Gcc-bugs
mailing list