[Bug libstdc++/112314] Missing index assertions in basic_string_view
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 6 21:01:22 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112314
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:4f74f6c7aa0820943ba0777dc41d69a969576e18
commit r11-11127-g4f74f6c7aa0820943ba0777dc41d69a969576e18
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Nov 1 15:01:22 2023 +0000
libstdc++: Add assertion to std::string_view::remove_suffix [PR112314]
libstdc++-v3/ChangeLog:
PR libstdc++/112314
* include/std/string_view (string_view::remove_suffix): Add
debug assertion.
*
testsuite/21_strings/basic_string_view/modifiers/remove_prefix/debug.cc:
New test.
*
testsuite/21_strings/basic_string_view/modifiers/remove_suffix/debug.cc:
New test.
(cherry picked from commit 6afa984f47e16e8bd958646d7407b74e61041f5d)
More information about the Gcc-bugs
mailing list