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:06:42 +0000 (21:06 +0100)
commita1a0dc4548979f8a340a7ea71624a52a20e1e0b3
tree1bb35bd3e21f2037987c34fc504e6ab4e533cd48
parent039a630d787dc18c76b81f08a322ba1e0d91082d
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.
libstdc++-v3/include/bits/regex.h
libstdc++-v3/testsuite/28_regex/match_results/94627.cc [new file with mode: 0644]