re PR libstdc++/89608 (Undetected iterator invalidations on unordered containers...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 8 Mar 2019 05:37:50 +0000 (05:37 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 8 Mar 2019 05:37:50 +0000 (05:37 +0000)
commit20a4550ce01ab79ac7cd3412ce669cb9a032ca5e
treefc7c9c8d2b2323fb8861e5b7845c5e2b0ec0a53a
parentbddee796d0b4800b5ac3d7e7e9e315c23799424d
re PR libstdc++/89608 (Undetected iterator invalidations on unordered containers in debug mode)

2019-03-08  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/89608
* include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
Invalidate all iterators in case of rehash.
(unordered_multimap<>::_M_check_rehashed): Likewise.
* include/debug/unordered_set
(unordered_set<>::_M_check_rehashed): Likewise.
(unordered_multiset<>::_M_check_rehashed): Likewise.
* testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.

From-SVN: r269478
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/unordered_map
libstdc++-v3/include/debug/unordered_set
libstdc++-v3/testsuite/23_containers/unordered_set/debug/89608_neg.cc [new file with mode: 0644]