https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99021
Bug ID: 99021
Summary: coroutine_handle<_Promise>::from_address() should be
noexcept
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redbeard0531 at gmail dot com
Target Milestone: ---
While it isn't required by the standard, it seems odd that
coroutine_handle<void>::from_address() is noexcept while the non-specialized
version isn't when they are the same code. This would also help with
clang/libstdc++ compatibility because they currently check for noexcept of
from_address() as part of validating
https://eel.is/c++draft/dcl.fct.def.coroutine#15 (I'll be filing a bug with
them about that shortly since that is leaking an internal compiler
implementation detail).