From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 56DEE398B828; Tue, 9 Feb 2021 14:26:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56DEE398B828 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9353] libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: e916d7381f9fcb30c0c05a5522e30920176a3804 X-Git-Newrev: fa183497cf25b604f5b76bc16766f30f5ec7e05b Message-Id: <20210209142622.56DEE398B828@sourceware.org> Date: Tue, 9 Feb 2021 14:26:22 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 14:26:22 -0000 https://gcc.gnu.org/g:fa183497cf25b604f5b76bc16766f30f5ec7e05b commit r10-9353-gfa183497cf25b604f5b76bc16766f30f5ec7e05b Author: Jonathan Wakely Date: Tue Feb 9 11:23:29 2021 +0000 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: --- libstdc++-v3/include/std/coroutine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine index 468d1107557..21bdd1b2f04 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;