re PR libstdc++/87135 ([C++17] unordered containers violate iterator validity require...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 21 Sep 2018 20:39:07 +0000 (20:39 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 21 Sep 2018 20:39:07 +0000 (20:39 +0000)
commit9b297949628f17f7620032e035154225b2d238aa
treea80a9ec9f84e791aad92b4826b5357835dad7a42
parent35b66f30438dfac74e4bdcfc7904e9b9cf72b823
re PR libstdc++/87135 ([C++17] unordered containers violate iterator validity requirements)

2018-09-21  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/87135
* src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
Use __builtin_floor to compute _M_next_resize.
* testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt.
* testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc:
Adapt.

From-SVN: r264494
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/hashtable_c++0x.cc
libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/71181.cc
libstdc++-v3/testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc