re PR libstdc++/51866 ([c++0x][4.7 Regression] unordered_multiset compares moved...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 18 Jan 2012 20:17:57 +0000 (20:17 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 18 Jan 2012 20:17:57 +0000 (20:17 +0000)
commit66b432fd29b9d3a58ccac007b89f0460906a74d3
tree8abd2d9719fc4e2b32085b95da5449eaee01bded
parent9ffaf4bc3cb4f56156c97693238b89959f6a0da4
re PR libstdc++/51866 ([c++0x][4.7 Regression] unordered_multiset compares moved-out values)

2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
    Roman Kononov  <roman@binarylife.net>

PR libstdc++/51866
* include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
Do not keep a reference to a potentially moved instance.
* testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
* testsuite/23_containers/unordered_multimap/insert/51866.cc: New.

Co-Authored-By: Roman Kononov <roman@binarylife.net>
From-SVN: r183285
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/51866.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multiset/insert/51866.cc [new file with mode: 0644]