diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2018-09-18 20:36:16 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2018-09-18 20:36:16 +0000 |
commit | a521e62615e439aea7502a52fd0f8a21eaa6304f (patch) | |
tree | 0d8e691c655254cfc40fc4d1416b1a47c34e35bb /intl | |
parent | 998511a6100212931d039e3a46403d2d878c8e5a (diff) | |
download | gcc-a521e62615e439aea7502a52fd0f8a21eaa6304f.tar.gz |
re PR libstdc++/87135 ([C++17] unordered containers violate iterator validity requirements)
2018-09-18 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/87135
* src/c++11/hashtable_c++0x.cc:
(_Prime_rehash_policy::_M_next_bkt): Return a prime no smaller than
requested size, but not necessarily greater.
(_Prime_rehash_policy::_M_need_rehash): Rehash only if target size is
strictly greater than next resize threshold.
* testsuite/23_containers/unordered_map/modifiers/reserve.cc: Adapt test
to validate that there is no rehash as long as number of insertion is
lower or equal to the reserved number of elements.
From-SVN: r264413
Diffstat (limited to 'intl')
0 files changed, 0 insertions, 0 deletions