diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2023-01-09 18:48:30 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2023-01-15 17:05:00 +0100 |
commit | 5c9833d878602de20043a5b74e4c6acd33d5fb3e (patch) | |
tree | 075fe8050395359716ce8aa1b9eaaa8b500d7c52 /gcc | |
parent | 844190af178c210a6aff6b7eb4dd8c6a49210ff9 (diff) | |
download | gcc-5c9833d878602de20043a5b74e4c6acd33d5fb3e.zip gcc-5c9833d878602de20043a5b74e4c6acd33d5fb3e.tar.gz gcc-5c9833d878602de20043a5b74e4c6acd33d5fb3e.tar.bz2 |
libstdc++: [_GLIBCXX_DEBUG] Complete deadlock fix on safe iterators [PR108288]
Complete fix on all _Safe_iterator post-increment and post-decrement implementations
and on _Safe_local_iterator.
libstdc++-v3/ChangeLog:
PR libstdc++/108288
* include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
fix to other iterator category.
(_Safe_iterator<>::operator--(int)): Likewise.
* include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
Fix deadlock.
* testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
(invalid_local_iterator_post_increment): New.
* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
New test.
* testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions