Re: gcc dynamic_bitset bug

2024-06-10 Thread Jonathan Wakely via Gcc-bugs
Hi,

This mailing list is for automated mails from our bug database, not
for reporting bugs. Please see https://gcc.gnu.org/bugs/ for how to
report bugs, although it looks like this was already reported as Bug
115399.

Thanks for finding the bug though.



gcc dynamic_bitset bug

2024-06-08 Thread Milan Delmas via Gcc-bugs
Hi,
The TR2 dynamic_bitset code is faulty. In the _M_do_left_shift implementation, 
the part responsible for clearing the rightmost blocks after a shift of at 
least block_size was commented out. It results in a wrong implementation of the 
shift operator.
I haven't looked at the right shift.
Example of code failing : 
https://codeforces.com/blog/entry/129454?#comment-1157392

Sincerely,
Milan