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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:9a8b7edbe65ec6350a996eab51a7c26a087e6d2b

commit r10-10605-g9a8b7edbe65ec6350a996eab51a7c26a087e6d2b
Author: Patrick Palka <ppa...@redhat.com>
Date:   Mon Apr 25 21:49:00 2022 -0400

    c++: ICE with requires-expr and -Wsequence-point [PR105304]

    Here we're crashing from verify_sequence_points for this requires-expr
    condition because it contains a templated CAST_EXPR with empty operand,
    and verify_tree doesn't ignore this empty operand only because the
    manual tail recursion that it performs for unary expression trees skips
    the NULL test.

            PR c++/105304

    gcc/c-family/ChangeLog:

            * c-common.c (verify_tree) [restart]: Move up to before the
            NULL test.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-requires30.C: New test.

    (cherry picked from commit c83b9c54d9dee2dce5d8268472a745b013d166cc)

Reply via email to