On Tue, 18 Mar 2025, Jakub Jelinek wrote:

> Hi!
> 
> The following new testcase FAILs with C (and succeeds with C++).
> c_parser_handle_musttail is used in c_parser_compound_statement_nostart
> where it is directly passed to c_parser_statement_after_labels, and in
> c_parser_all_labels where it is returned.  Now, out of the 3
> c_parser_all_labels callers, c_parser_statement passes it down to
> c_parser_statement_after_labels, but c_parser_if_body and c_parser_else_body
> don't, so if there are return statements with [[gnu::musttail]] or
> [[clang::musttail]] directly in if or else bodies rather than wrapped with
> {}s, we throw that information away.
> 
> FIxed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?

OK.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to