PR 53115
Paolo Carlini
paolo.carlini@oracle.com
Sun Apr 29 10:43:00 GMT 2012
On 04/29/2012 12:21 PM, François Dumont wrote:
> Hi
>
> Here is the patch for this PR. We were using buckets before
> updating them after having inserted equivalents elements one after the
> another.
>
> 2012-04-29 François Dumont <fdumont@gcc.gnu.org>
>
> PR libstdc++/53115
> * include/bits/hashtable.h
> (_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets
> after insertion of several equivalent elements.
> * testsuite/23_containers/unordered_multiset/insert/53115.cc: New.
>
> Tested undex linux x86_64 in the 4.7 branch, normal and debug mode.
>
> Ok to commit ?
Ok, but please also add a similar testcase for unordered_multimap. Also
- just in case isn't obvious enough - please run such testcases through
valgrind.
Thanks!
Paolo.
More information about the Libstdc++
mailing list