PR libstdc++/92124 fix incorrect container move assignment
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 7 Jan 2020 21:01:37 +0000 (21:01 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 7 Jan 2020 21:01:37 +0000 (21:01 +0000)
commit6af8819be1e09fa2035248eba7fb320350ec14ab
tree7faa959c71a9709981d28d0f4a489693da621246
parent87d3f828de27930f88ce5b76c9ae222c89064cca
PR libstdc++/92124 fix incorrect container move assignment

* include/bits/stl_tree.h
(_Rb_tree<>::_M_move_assign(_Rb_tree&, false_type)): Replace
std::move_if_noexcept by std::move.
* testsuite/23_containers/map/92124.cc: New.
* testsuite/23_containers/set/92124.cc: New.

From-SVN: r279967
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/testsuite/23_containers/map/92124.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/92124.cc [new file with mode: 0644]