[Bug libstdc++/94627] [9/10 Regression] std::match_results equality comparisons should not be noexcept
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 1 22:21:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94627
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:e4490e7771e4df28427cca5e113afe58a7fff8d5
commit r9-8713-ge4490e7771e4df28427cca5e113afe58a7fff8d5
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jul 1 21:01:15 2020 +0100
libstdc++: Remove noexcept from match_results comparisons (PR 94627)
These functions can't be noexcept because the iterators stored in the
sub_match objects can throw on any operation.
libstdc++-v3/ChangeLog:
PR libstdc++/94627
* include/bits/regex.h (operator==, operator!=): Remove noexcept
equality comparisons for match_results.
* testsuite/28_regex/match_results/94627.cc: New test.
(cherry picked from commit a1a0dc4548979f8a340a7ea71624a52a20e1e0b3)
More information about the Gcc-bugs
mailing list