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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <[email protected]>:

https://gcc.gnu.org/g:9e42a40bf1fa745765d7aceccc6fef3cee2d789c

commit r16-8436-g9e42a40bf1fa745765d7aceccc6fef3cee2d789c
Author: Paul Thomas <[email protected]>
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  <[email protected]>

    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.

Reply via email to