aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-02-09 11:23:29 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-02-09 12:31:52 +0000
commit26a3f288f1895a8c061c0458590542a3d2ee796a (patch)
tree19269be7f6f470248b82e6e826c00b51cd9cea2d
parentadeaa43ad3bd8004c2521e1fb3bb0e08be33234b (diff)
downloadgcc-26a3f288f1895a8c061c0458590542a3d2ee796a.zip
gcc-26a3f288f1895a8c061c0458590542a3d2ee796a.tar.gz
gcc-26a3f288f1895a8c061c0458590542a3d2ee796a.tar.bz2
libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021]
The coroutine_handle<void>::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<P>::from_address): Add noexcept.
-rw-r--r--libstdc++-v3/include/std/coroutine2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/coroutine b/libstdc++-v3/include/std/coroutine
index e69024c..209deb7 100644
--- a/libstdc++-v3/include/std/coroutine
+++ b/libstdc++-v3/include/std/coroutine
@@ -206,7 +206,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
constexpr void* address() const noexcept { return _M_fr_ptr; }
- 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;