gcc/libstdc++-v3/testsuite/23_containers/unordered_multimap
François Dumont 3157879227 re PR libstdc++/54296 (using the object in the map to erase element from the map crashes)
2012-09-05  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/54296
	* include/bits/hashtable.h (_M_erase(size_type, __node_base*,
	__node_type*)): New.
	(erase(const_iterator)): Use latter.
	(_M_erase(std::true_type, const key_type&)): New, likewise.
	(_M_erase(std::false_type, const key_type&)): New. Find all nodes
	matching the key before deallocating them so that the key doesn't
	get invalidated.
	(erase(const key_type&)): Use the new member functions.
	* testsuite/23_containers/unordered_map/erase/54296.cc: New.
	* testsuite/23_containers/unordered_multimap/erase/54296.cc: New.

From-SVN: r190991
2012-09-05 19:41:16 +00:00
..
cons hashtable.h (_Hashtable<>::_Hashtable(_Hashtable&&)): Remove noexcept, the move constructor allocates memory... 2011-09-01 15:45:20 +00:00
debug formatter.h (enum _Debug_msg_id): Add __msg_self_move_assign. 2012-03-09 10:37:34 +00:00
erase re PR libstdc++/54296 (using the object in the map to erase element from the map crashes) 2012-09-05 19:41:16 +00:00
hash_policy
insert 9780-2.cc: Avoid -Wall warnings. 2012-05-21 23:40:55 +00:00
modifiers re PR libstdc++/54075 ([4.7.1] unordered_map insert still slower than 4.6.2) 2012-07-25 19:32:48 +00:00
operations count.cc: New. 2011-10-28 11:54:04 +00:00
operators
requirements re PR libstdc++/53339 (unordered_map::iterator requires Value to be complete type) 2012-05-15 10:00:19 +00:00
final_hash.cc re PR libstdc++/51608 ([C++11] Unordered containers end(size_type) isn't constant time) 2011-12-29 17:58:51 +00:00
init-list.cc
observers.cc 9780-2.cc: Avoid -Wall warnings. 2012-05-21 23:40:55 +00:00
range_access.cc