https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118903
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:b9b3471a9eb3f490b74b57236b4c122045dbcf56 commit r15-10092-gb9b3471a9eb3f490b74b57236b4c122045dbcf56 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Fri May 30 20:09:40 2025 +0100 c++: Emit an error for attempted constexpr co_await [PR118903]. We checked that the coroutine expressions were not suitable for constexpr, but did not emit and error when needed. PR c++/118903 gcc/cp/ChangeLog: * constexpr.cc (potential_constant_expression_1): Emit an error when co_await et. al. are used in constexpr contexts. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pr118903.C: New test. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> (cherry picked from commit 0ae77a05c416c9f750cb87f1bef0800651168b7e)