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

--- Comment #4 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:1701efd5c848f56cf9a469c5bf42dd0bca675e0a

commit r15-5815-g1701efd5c848f56cf9a469c5bf42dd0bca675e0a
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Fri Nov 29 15:29:41 2024 -0800

    gimplefe: Error recovery for invalid declarations [PR117749]

    c_parser_declarator can return null if there was an error,
    but c_parser_gimple_declaration was not ready for that.
    This fixes that oversight so we don't get an ICE after the error.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR c/117749

    gcc/c/ChangeLog:

            * gimple-parser.cc (c_parser_gimple_declaration): Check
            declarator to be non-null.

    gcc/testsuite/ChangeLog:

            * gcc.dg/gimplefe-55.c: New test.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to