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

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

https://gcc.gnu.org/g:c83b9c54d9dee2dce5d8268472a745b013d166cc

commit r12-8257-gc83b9c54d9dee2dce5d8268472a745b013d166cc
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.cc (verify_tree) [restart]: Move up to before the
            NULL test.

    gcc/testsuite/ChangeLog:

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

Reply via email to