On Thu, 14 May 2026, Andi Kleen wrote:

> From: Andi Kleen <[email protected]>
> 
> A compound statement didn't reset the musttail state after the statement
> with the attribute, which lead to bogus errors later. Always reset it.
> 
> Proposed for trunk and gcc-15 / 16.
> 
>       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.

OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to