https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67922

Tomasz Kamiński <tkaminsk at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkaminsk at gcc dot gnu.org

--- Comment #10 from Tomasz Kamiński <tkaminsk at gcc dot gnu.org> ---
> We could look at making _M_deallocate_nodes check if each node is the last in 
> a bucket, and if so, set the bucket to nullptr

As we are only thread modifying container we could unconditionally set
_M_bucket to nullptr, without checking if we are last node. The iteration does
not depends on bucket, only on _M_nxt pointer.

Reply via email to