Wrong hastable key_eq implementation

François Dumont frs.dumont@gmail.com
Wed Jan 4 20:32:00 GMT 2012


Hi

I was quite surprise to discover this regression introduced by recent 
hashtable modifications.

2012-01-04  François Dumont <fdumont@gcc.gnu.org>

         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
         protected rather than private, use it...
         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
         * testsuite/23_containers/unordered_set/observers.cc: New.
         * testsuite/23_containers/unordered_multiset/observers.cc: New.
         * testsuite/23_containers/unordered_map/observers.cc: New.
         * testsuite/23_containers/unordered_multimap/observers.cc: New.


Tested under linux  x86_64, ok to commit ?

If so and not done at that time, can I do the ChangeLog roll ?

I plan to do:
svn mv ChangeLog ChangeLog-2011
svn add ChangeLog

and move all 2012 entries to newly created ChangeLog.

Ok ?

François

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


More information about the Libstdc++ mailing list