diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2024-03-14 22:13:57 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2024-03-17 16:41:37 +0100 |
commit | 07fad7a7fc245369989e9ca746728ea78b924715 (patch) | |
tree | 0d93b1d99c012326ab7cedb4189d82b9dbe3582f /gcc | |
parent | f065c582d9c8e0a4fee7ee563c584ee3b1975bea (diff) | |
download | gcc-07fad7a7fc245369989e9ca746728ea78b924715.zip gcc-07fad7a7fc245369989e9ca746728ea78b924715.tar.gz gcc-07fad7a7fc245369989e9ca746728ea78b924715.tar.bz2 |
libstdc++: Implement N3644 on _Safe_iterator<> [PR114316]
Consider range of value-initialized iterators as valid and empty.
libstdc++-v3/ChangeLog:
PR libstdc++/114316
* include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
First check if both iterators are value-initialized before checking if
singular.
* testsuite/23_containers/set/debug/114316.cc: New test case.
* testsuite/23_containers/vector/debug/114316.cc: New test case.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions