]> git.ipfire.org Git - thirdparty/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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:15:46 +0000 (13:15 -0300)
commitb098dc66eacaaaff121eb417238643aed152dcae
treea1ed773b43ee1639bbe1b18eb40736d8ba77320d
parent732961dea2e59e5186901843c9c3d636f7a48a51
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]