gcc/libstdc++-v3/testsuite
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
..
17_intro re PR libstdc++/54112 (including complex.h and complex fails in C++03) 2012-08-13 11:55:00 +00:00
18_support Remove obsolete Tru64 UNIX V5.1B support 2012-03-12 15:35:56 +00:00
19_diagnostics re PR c++/50920 (add a -std=c++11 option to the driver) 2011-10-31 15:34:14 -04:00
20_util re PR libstdc++/54351 (~unique_ptr() should not set stored pointer to null) 2012-08-26 01:12:40 +01:00
21_strings Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
22_locale re PR libstdc++/53678 (namespace pollution on NetBSD) 2012-06-18 22:43:58 +01:00
23_containers 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
24_iterators
25_algorithms 2012-05-29 François Dumont <fdumont@gcc.gnu.org> 2012-05-29 19:29:29 +00:00
26_numerics random: Add __gnu_cxx:normal_mv_distribution<> class. 2012-09-05 04:06:24 +00:00
27_io Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
28_regex 02_match: To... 2012-06-25 06:01:13 +00:00
29_atomics 9780-2.cc: Avoid -Wall warnings. 2012-05-21 23:40:55 +00:00
30_threads * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep. 2012-08-26 15:59:20 +01:00
abi re PR c++/6057 (expression mangling doesn't work for operator new) 2012-01-06 16:39:43 -05:00
backward
config
data
decimal [multiple changes] 2012-08-06 18:06:42 +00:00
ext c++config: Remove __regex nested namespace. 2012-06-28 07:50:34 +00:00
lib re PR libstdc++/52689 (static linking with libstdc++ fails) 2012-04-25 22:47:52 +00:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters cxx11.cc (struct datum): New. 2012-08-15 18:37:30 +00:00
performance re PR libstdc++/54075 ([4.7.1] unordered_map insert still slower than 4.6.2) 2012-07-29 16:44:18 +00:00
tr1 Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
tr2 [multiple changes] 2011-10-19 22:05:26 +00:00
util testsuite_abi.cc (check_version): Add GLIBCXX_3.4.18. 2012-08-30 15:58:52 +00:00
Makefile.am Makefile.am (check_DEJAGNUnormal0): Run prettyprinters.exp. 2012-04-12 20:20:01 +00:00
Makefile.in Makefile.am (check_DEJAGNUnormal0): Run prettyprinters.exp. 2012-04-12 20:20:01 +00:00