PATCH RFA: Handle erasing a reference to an entry in a hash table
Ian Lance Taylor
iant@google.com
Tue Mar 31 05:46:00 GMT 2009
PR 25896 is about a problem when passing a reference to an entry in a
hash table to the erase function. The issue was fixed in the TR1
classes unordered_map and friends. This patch extends the fix to
hash_map and friends.
Tested by building libstdc++-v3 and running the C++ and libstdc++-v3
testsuite on i686-pc-linux-gnu. The patch includes a couple of tests
copied from the tests included with the fix for PR 25896.
OK to commit?
Ian
2009-03-30 Ian Lance Taylor <iant@google.com>
* include/backward/hashtable.h (erase): Correctly handle erasing a
reference to an entry in the hash table.
* testsuite/backward/hash_map/25896.cc: New.
* testsuite/backward/hash_set/25896.cc: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 10720 bytes
Desc: Handle erasing a reference to an entry in a hash table
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090331/918ec82d/attachment.bin>
More information about the Libstdc++
mailing list