OSDN Git Service

2012-07-26 Fran├žois Dumont <fdumont@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 514c403..53d1489 100644 (file)
@@ -1,3 +1,17 @@
+2012-07-26  Fran├žois Dumont  <fdumont@gcc.gnu.org>
+
+       PR libstdc++/54075
+       * include/bits/hashtable.h
+       (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator,
+       size_type, ...): Remove std::max usage to guarantee that hashtable
+       state is consistent with hash policy state.
+       (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid
+       the hashtable shrinking on next insertion.
+       * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New.
+       * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New.
+       * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New.
+       * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New.
+
 2012-07-20  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/30_threads/thread/adl.cc: Add missing dg-requires.