https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118903

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:0ae77a05c416c9f750cb87f1bef0800651168b7e

commit r16-1059-g0ae77a05c416c9f750cb87f1bef0800651168b7e
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>

Reply via email to