OSDN Git Service

2007-02-23 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Feb 2007 23:34:18 +0000 (23:34 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Feb 2007 23:34:18 +0000 (23:34 +0000)
commit3fb4295346cbc9e95e3af2596335f24e6082ea28
tree01022d84fee172d97e5682b8ff5cea978589bc6d
parentcf9d2c343781ec1f69c8cc6921466a4fac7f12ef
2007-02-23  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/25896
* include/tr1/hashtable (_Hashtable<>::erase(const key_type&)):
Take care of &_M_extract((*__slot)->_M_v) == &__k.

* testsuite/tr1/6_containers/unordered_map/erase/1.cc: New.
* testsuite/tr1/6_containers/unordered_multimap/erase/1.cc: Likewise.
* testsuite/tr1/6_containers/unordered_multiset/erase/1.cc: Likewise.
* testsuite/tr1/6_containers/unordered_set/erase/1.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122276 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/hashtable
libstdc++-v3/testsuite/tr1/6_containers/unordered_map/erase/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/erase/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/erase/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/6_containers/unordered_set/erase/1.cc [new file with mode: 0644]