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

--- Comment #6 from Andre Vehreschild <vehre at gcc dot gnu.org> ---
Hi Antony,

I could not apply your patch. Neither by git am nor by patch -p1. So I had to
replay it essentially. With that applied all seems to be fine, executionwise.
But the regression tests fail for finalize_34.f90 where now __builtin_free is 
called 24 times instead of the expected 12 times. Looking into the dump one
sees, that ptr2->evtlist[0] components are freed 4 times in a row. Therefore I
strongly suggest to not remove the was_finalized checking. May be you can up,
with a better solution. But I don't think that bloating the executable for the
sake of removing a check in gfortran will be very well taken.

Reply via email to