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

--- Comment #5 from CVS 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:fdf0b6ce6c1cfa1c328c0c40473c71ca11fd8303

commit r12-4103-gfdf0b6ce6c1cfa1c328c0c40473c71ca11fd8303
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Sat Oct 2 16:15:38 2021 +0100

    coroutines: Fail with a sorry when presented with a VLA [PR 101765].

    We do not support this yet.

    Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>

            PR c++/101765

    gcc/cp/ChangeLog:

            * coroutines.cc (register_local_var_uses): Emit a sorry if
            we encounter a VLA in the coroutine local variables.

    gcc/testsuite/ChangeLog:

            * g++.dg/coroutines/pr101765.C: New test.

Reply via email to