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

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

https://gcc.gnu.org/g:4a7fcf5b32a979f9a009f5dc71140eceb7db1b1a

commit r15-11172-g4a7fcf5b32a979f9a009f5dc71140eceb7db1b1a
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