diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-10-07 20:33:45 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-08 12:20:25 +0100 |
commit | 82e3a826871effc7093852a9181f641c693ae94f (patch) | |
tree | 59fad51566da7e89bf11f80a2622546f5b5de2eb /gcc/objc | |
parent | fcc13d6fc31441b5672b68a5e3b247687724218f (diff) | |
download | gcc-82e3a826871effc7093852a9181f641c693ae94f.zip gcc-82e3a826871effc7093852a9181f641c693ae94f.tar.gz gcc-82e3a826871effc7093852a9181f641c693ae94f.tar.bz2 |
libstdc++: Restore debug checks in uniform container erasure functions
This partially reverts commit 561078480ffb5adb68577276c6b23e4ee7b39272.
If we avoid all debug mode checks when erasing elements then we fail to
invalidate safe iterators to the removed elements. This reverts the
recent changes in r12-4083 and r12-4233, restoring the debug checking.
libstdc++-v3/ChangeLog:
* include/experimental/deque (erase, erase_if): Revert changes
to avoid debug mode overhead.
* include/experimental/map (erase, erase_if): Likewise.
* include/experimental/set (erase, erase_if): Likewise.
* include/experimental/unordered_map (erase, erase_if):
Likewise.
* include/experimental/unordered_set (erase, erase_if):
Likewise.
* include/experimental/vector (erase, erase_if): Likewise.
* include/std/deque (erase, erase_if): Likewise.
* include/std/map (erase, erase_if): Likewise.
* include/std/set (erase, erase_if): Likewise.
* include/std/unordered_map (erase, erase_if): Likewise.
* include/std/unordered_set (erase, erase_if): Likewise.
* include/std/vector (erase, erase_if): Likewise.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions