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

--- Comment #8 from GCC 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:0c018a74eb1affe2a1fa385cdddaa93979683420

commit r14-6343-g0c018a74eb1affe2a1fa385cdddaa93979683420
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Dec 8 13:34:04 2023 -0500

    c++: guard more against undiagnosed error_mark_node [PR112658]

    This adds a sanity check to cp_parser_expression_statement similar to
    the one in finish_expr_stmt added by r6-6795-g0fd9d4921f7ba2, which
    effectively downgrades accepts-invalid/wrong-code bugs like this one
    into ice-on-invalid/ice-on-valid ones.

            PR c++/112658

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_expression_statement): If the statement
            is error_mark_node, make sure we've seen_error().

Reply via email to