]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix _Safe_local_iterator<>::_M_valid_range
authorFrançois Dumont <fdumont@gcc.gnu.org>
Sun, 17 Mar 2024 16:30:58 +0000 (17:30 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 18 Mar 2024 21:25:57 +0000 (22:25 +0100)
commit5f6e0853c30fec72d977afaa6f7a5633a8d910be
tree79e0799407dc77ec9d931beb7fc616cdc859b28e
parentb96c5436880d7926299314a33c953171082ab59e
libstdc++: Fix _Safe_local_iterator<>::_M_valid_range

Unordered container local_iterator range shall not contain any singular
iterator unless both iterators are both value-initialized.

libstdc++-v3/ChangeLog:

* include/debug/safe_local_iterator.tcc
(_Safe_local_iterator::_M_valid_range): Add _M_value_initialized and
_M_singular checks.
* testsuite/23_containers/unordered_set/debug/114316.cc: New test case.
libstdc++-v3/include/debug/safe_local_iterator.tcc
libstdc++-v3/testsuite/23_containers/unordered_set/debug/114316.cc [new file with mode: 0644]
This page took 0.062481 seconds and 5 git commands to generate.