[Bug fortran/100155] [13/14/15 Regression] ICE in gfc_conv_intrinsic_size, at fortran/trans-intrinsic.c:805

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 17 08:39:16 GMT 2026


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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

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

commit r14-12531-gffd53b5f6ce13ca667e0d64ac5b7e1d450eb33cb
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Thu Apr 2 10:00:37 2026 +0100

    Fortran: Regression in gfc_convert_to_structure_constructor

    This patch is not the prettiest because it jumps across the normal
    wrapping up of the actual arguments in gfc_conv_procedure_call. However
    the alternatives, which required jumps past existing call and the logic
    for adding the pre and post blocks looked even uglier. The testcase has
    been checked with valgrind and does not cause memory leaks. The memory
    leaks in pr105168, mentioned in this pr, are fixed too.

    2026-04-02  Paul Thomas  <pault@gcc.gnu.org>

    gcc/fortran
            PR fortran/100155
            * trans-expr.cc (gfc_add_interface_mapping): 'new_sym' dummy
            attribute set to zero.
            (gfc_conv_procedure_call): Deallocate allocatable components of
            a class argument, enclosed in parentheses,wrap up the parmse
            and proceed to the next argument.

    gcc/testsuite/
            PR fortran/100155
            * gfortran.dg/pr100155.f90: New test.

    (cherry picked from commit 9e42a40bf1fa745765d7aceccc6fef3cee2d789c)


More information about the Gcc-bugs mailing list