https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112314
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:66d0abdf0ade07228eba4dedcd1a9da09960ef53 commit r13-8014-g66d0abdf0ade07228eba4dedcd1a9da09960ef53 Author: Jonathan Wakely <jwak...@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)