re PR libstdc++/49060 (use of deleted memory in __gnu_cxx::hashtable::erase)
authorIan Lance Taylor <iant@google.com>
Wed, 25 May 2011 23:09:14 +0000 (23:09 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 25 May 2011 23:09:14 +0000 (23:09 +0000)
commit2b4e07b814b50a6f5cdf6b10d05117623d8854c9
treec4e6283a51cca060e1f1e57da5f033aa3fced142
parent48126bcbc276e1684f96f7c087d69688028cae73
re PR libstdc++/49060 (use of deleted memory in __gnu_cxx::hashtable::erase)

PR libstdc++/49060
* include/backward/hashtable.h (hashtable::erase): Don't crash if
erasing first and another element with a reference to the other
element.
* testsuite/backward/hash_set/49060.cc: New.

From-SVN: r174240
libstdc++-v3/ChangeLog
libstdc++-v3/include/backward/hashtable.h
libstdc++-v3/testsuite/backward/hash_set/49060.cc [new file with mode: 0644]