From: Jonathan Wakely Date: Tue, 9 Feb 2021 11:23:29 +0000 (+0000) Subject: libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021] X-Git-Tag: releases/gcc-10.3.0~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa183497cf25b604f5b76bc16766f30f5ec7e05b;p=thirdparty%2Fgcc.git libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021] The coroutine_handle::from_address(void*) version is already noexcept, and they do the same thing. Make them consistent. libstdc++-v3/ChangeLog: PR libstdc++/99021 * include/std/coroutine (coroutine_handle

::from_address): Add noexcept. (cherry picked from commit 26a3f288f1895a8c061c0458590542a3d2ee796a) --- diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine index 468d11075577..21bdd1b2f042 100644 --- a/libstdc++-v3/include/std/coroutine +++ b/libstdc++-v3/include/std/coroutine @@ -197,7 +197,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } // 17.12.3.2, export/import - constexpr static coroutine_handle from_address(void* __a) + constexpr static coroutine_handle from_address(void* __a) noexcept { coroutine_handle __self; __self._M_fr_ptr = __a;