https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871
Alfred Agrell <blubban at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blubban at gmail dot com --- Comment #15 from Alfred Agrell <blubban at gmail dot com> --- Just ran into this (and/or bug 98056). Still exists as of trunk-20220522. Minimized to https://godbolt.org/z/qhWWzKe4M #include <coroutine> #include <initializer_list> class my_coro { public: my_coro(); class promise_type { public: my_coro get_return_object(); std::suspend_never initial_suspend(); std::suspend_never final_suspend() noexcept; void unhandled_exception(); }; }; std::suspend_never inner(std::initializer_list<int>); my_coro doesnt_work() { co_await inner({ 1,2,3 }); }