[v3] fix libstdc++/52476

François Dumont frs.dumont@gmail.com
Sun Mar 18 23:28:00 GMT 2012


Attached patch applied.

2012-03-16  François Dumont <fdumont@gcc.gnu.org>

         PR libstdc++/52476
         * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
         (_Hashtable<>::_M_rehash): Use the latter.
         * testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
         * testsuite/23_containers/unordered_multiset/insert/52476.cc: New.

Regards

On 03/16/2012 10:19 AM, Paolo Carlini wrote:
> Hi,
>>     Regarding the testcase, the code in the ticket is showing the problem but is not a test. The test might seem a little bit complicated but I try to make it independent to how elements are inserted into the container which is not defined by the Standard. Even if we change implementation and store 0-3,0-2,0-1,0-0 rather than 0-0,0-1,0-2,0-3 the test will still work and only check the Standard point which is that the order of those elements should be preserve on rehash.
> Understood, thanks for adding a second testcase for multiset.
>> Tested under Linux x86_64.
>>
>> Ok for mainline ?
> Yes, thanks a lot. Please keep in mind that barring special issues we want the fix for 4.7.1 too.
>
> Thanks
> Paolo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 52476.patch
Type: text/x-patch
Size: 10791 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120318/95541862/attachment.bin>


More information about the Libstdc++ mailing list