https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- C++ coroutines are allocated on the heap though. https://wg21.link/p0876 is more relevant here, but not approved yet.