]> 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 20:47:41 +0000 (21:47 +0100)
commit4c994586cbd40a33f223aaaf90887afe97208543
tree087f61bdb0709e769dc27b01e00110e662938692
parentb1c3d3111a0ac36ae3c2d7412d20777fc073fdeb
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.059331 seconds and 5 git commands to generate.