2010-08-11 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 23:59:35 +0000 (23:59 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 23:59:35 +0000 (23:59 +0000)
commit1bea0a44b609f63175474ea9ab927268fc57bc12
treea32f4d31130e39b531e1695206585d8fc6dd3a0d
parenta58d85cac917662a013b0491ab4c9422a12ee175
2010-08-11  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/hashtable.h (_Hashtable<>::erase(const key_type&)):
Use std::__addressof.

* include/bits/forward_list.tcc (forward_list<>::remove): Deal
correctly with &__tmp->_M_value == &__val.
* testsuite/23_containers/forward_list/operations/remove_freed.cc:
New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163178 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/forward_list.tcc
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/forward_list/operations/remove_freed.cc [new file with mode: 0644]