https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111728
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-10-08 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced to just using coroutine header file: ``` #include <coroutine> struct promise; struct coroutine : std::coroutine_handle<promise> { using promise_type = ::promise; bool await_ready() { return false; } void await_suspend( coroutine_handle h) {} int await_resume() {} }; struct promise { coroutine get_return_object() { return {coroutine::from_promise(*this)}; } std::suspend_always initial_suspend() noexcept { return {}; } std::suspend_always final_suspend() noexcept { return {}; } void return_void() {} void unhandled_exception() {} }; coroutine write_fields() { int static_buffer[10]; co_await [](auto) -> coroutine { if (sizeof(static_buffer)); co_return; }(0); } ``` Confirmed.