]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Remove noexcept from match_results comparisons (PR 94627)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 1 Jul 2020 20:01:15 +0000 (21:01 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 1 Jul 2020 21:58:44 +0000 (22:58 +0100)
commite4490e7771e4df28427cca5e113afe58a7fff8d5
tree0c6fe1c83f01653aeaddba4a997116b69b167eb0
parent0c6cec5ce99a7f532d66373e0ba340c94ef688a6
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)
libstdc++-v3/include/bits/regex.h
libstdc++-v3/testsuite/28_regex/match_results/94627.cc [new file with mode: 0644]
This page took 0.061601 seconds and 6 git commands to generate.