https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115858
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Arsen Arsenovic <ar...@gcc.gnu.org>: https://gcc.gnu.org/g:c73d7f3c66c0b5865edd6880cd0d6be723cfbb8d commit r15-3202-gc73d7f3c66c0b5865edd6880cd0d6be723cfbb8d Author: Arsen ArsenoviÄ <ar...@aarsen.me> Date: Fri Aug 2 13:17:40 2024 +0200 coroutines: diagnose usage of alloca in coroutines We do not support it currently, and the resulting memory can only be used inside a single resumption, so best not confuse the user with it. PR c++/115858 - Incompatibility of coroutines and alloca() gcc/ChangeLog: * coroutine-passes.cc (execute_early_expand_coro_ifns): Emit a sorry if a statement is an alloca call. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pr115858.C: New test.