]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix noexcept on dtors in <experimental/scope> [PR114152]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 28 Feb 2024 14:45:18 +0000 (14:45 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 28 Feb 2024 14:50:13 +0000 (14:50 +0000)
commit80c386cb20d38ebc55f30a79418fabfbed904b87
tree522342a5d00b1e69eb178034eccad744dc97e756
parent06866bc368f828fa4f3dad25588d038414944c2e
libstdc++: Fix noexcept on dtors in <experimental/scope> [PR114152]

The PR points out that the destructors all have incorrect
noexcept-specifiers.

libstdc++-v3/ChangeLog:

PR libstdc++/114152
* include/experimental/scope (scope_exit scope_fail): Make
destructor unconditionally noexcept.
(scope_sucess): Fix noexcept-specifier.
* testsuite/experimental/scopeguard/114152.cc: New test.
libstdc++-v3/include/experimental/scope
libstdc++-v3/testsuite/experimental/scopeguard/114152.cc [new file with mode: 0644]