[Bug fortran/121743] [15/16 regression] ICE in build_function_decl, at gcc/fortran/trans-decl.cc:2519 since r15-6414-g91d52f87c5bc48

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 12 20:08:35 GMT 2026


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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:

https://gcc.gnu.org/g:89efa006922c80b8e9164cf593e0135df08a56a4

commit r16-8060-g89efa006922c80b8e9164cf593e0135df08a56a4
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date:   Thu Mar 12 10:23:47 2026 -0700

    Fortran: [PR121743] ICE in build_function_decl.

            PR fortran/121743

    gcc/fortran/ChangeLog:

            * trans-decl.cc (build_function_decl): Adjust the
            gcc_assert condition to avoid the ICE.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/pr121743.f90: New test.

    Co-Authored-By: Gilles Gouaillardet <gilles.gouaillardet@gmail.com>


More information about the Gcc-bugs mailing list