On Tue, 16 Sep 2025, Andrew Pinski wrote:

> These two don't make sense as nested functions as they both don't handle
> the unnesting and/or have support for the static chain.
> 
> So let's reject them.
> 
> Bootstrapped and tested on x86_64-linux-gnu.
> 
>       PR c/121421
> 
> gcc/c/ChangeLog:
> 
>       * c-parser.cc (c_parser_declaration_or_fndef): Error out for gimple
>       and rtl functions as nested functions.
> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.dg/gimplefe-error-16.c: New test.

OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to