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

Andre Vehreschild <vehre at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
            Summary|[12,13,14,15] Associate     |[12,13,14,15] Free of
                   |malloc error on selector    |procedure pointer
                   |with allocatable and        |components
                   |procedure pointer           |
                   |components                  |
           Assignee|unassigned at gcc dot gnu.org      |vehre at gcc dot gnu.org

--- Comment #5 from Andre Vehreschild <vehre at gcc dot gnu.org> ---
The bug has nothing to do with associate specifically, but will occur on
regular assign, too. GFortran missed out on not freeing procedure pointer
components. The patch here:
https://gcc.gnu.org/pipermail/fortran/2025-March/061937.html prevents that
free. It may be worth to discuss, whether the procedure pointer component
should be nullified only, but given that the whole type is going to be freed, I
see no need yet.
Awaiting review.

Reply via email to