re PR libstdc++/88199 (memory leak on unordered container move assignment)
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 27 Nov 2018 21:21:51 +0000 (21:21 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 27 Nov 2018 21:21:51 +0000 (21:21 +0000)
commit010211394dc2da35487ee0ce9e9f6cb13f343051
treeac94886f1681f0af90312d40a7c7fb979eaf65ae
parentd15a79696738d4f81b17774af7f7d7a80f429d5c
re PR libstdc++/88199 (memory leak on unordered container move assignment)

2018-11-27  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/88199
* include/bits/hashtable.h (_Hashtable<>::_M_assign_elements): New.
(_Hashtable<>::operator=(const _Hashtable&)): Use latter.
(_Hashtable<>::_M_move_assign(_Hashtable&&, false_type)): Likewise.
* testsuite/23_containers/unordered_set/allocator/move_assign.cc
(test03): New.

From-SVN: r266528
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc