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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:df5088e9a231159c8035debda18b997bc0eeeefb

commit r16-3915-gdf5088e9a231159c8035debda18b997bc0eeeefb
Author: Andrew Pinski <andrew.pin...@oss.qualcomm.com>
Date:   Mon Sep 15 22:37:44 2025 -0700

    c: Reject gimple and rtl functions as needed functions [PR121421]

    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.

    Signed-off-by: Andrew Pinski <andrew.pin...@oss.qualcomm.com>

Reply via email to