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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andi Kleen <[email protected]>:

https://gcc.gnu.org/g:591a8ac50d8faf914391e616faf6311f2143fde7

commit r17-534-g591a8ac50d8faf914391e616faf6311f2143fde7
Author: Andi Kleen <[email protected]>
Date:   Thu May 14 14:37:01 2026 -0700

    pr124532: Reset musttail attribute in compound statements

    A compound statement didn't reset the musttail state after the statement
    with the attribute, which led to bogus errors later. Always reset it.

            PR c/124532

    gcc/c/ChangeLog:

            * c-parser.cc (struct attr_state): Add reset method.
            (c_parser_compound_statement_nostart): Rename a to astate.
            Reset state before iterating statements.

    gcc/testsuite/ChangeLog:

            * c-c++-common/pr124532.c: New test.

Reply via email to