aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/xml
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2026-02-09 10:48:44 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2026-02-10 10:05:30 +0000
commit0912dfcd1e901d7dc1ff5e10528eefe3f3ff7b22 (patch)
tree7fc5aa1438a1c15b52397174b77140a0028e0f5d /libjava/classpath/gnu/xml
parent4d2af0735063ab7d38c4da0ec6f992276af855af (diff)
downloadgcc-0912dfcd1e901d7dc1ff5e10528eefe3f3ff7b22.zip
gcc-0912dfcd1e901d7dc1ff5e10528eefe3f3ff7b22.tar.gz
gcc-0912dfcd1e901d7dc1ff5e10528eefe3f3ff7b22.tar.bz2
libstdc++: Fix incorrect noexcept on string::compare overloads [PR123991]
These compare overloads throw when the pos index is out of range, not only when the const T& parameter throws on conversion to string_view. Remove the incorrect conditional noexcept-specifier from the two overloads that can throw. libstdc++-v3/ChangeLog: PR libstdc++/123991 * include/bits/basic_string.h (compare(size_type, size_type, T)): Remove noexcept-specifier. (compare(size_type, size_type, T, size_type, size_type)): Likewise. * include/bits/cow_string.h (compare(size_type, size_type, T)): Remove noexcept-specifier. (compare(size_type, size_type, T, size_type, size_type)): Likewise. * testsuite/21_strings/basic_string/operations/compare/char/123991.cc: New test. * testsuite/21_strings/basic_string/operations/compare/wchar_t/123991.cc: New test. Reviewed-by: Nathan Myers <nmyers@redhat.com>
Diffstat (limited to 'libjava/classpath/gnu/xml')
0 files changed, 0 insertions, 0 deletions