https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621
sandra at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandra at gcc dot gnu.org
--- Comment #16 from sandra at gcc dot gnu.org ---
There seems to be no actual v2 patch at the link posted previously
https://gcc.gnu.org/pipermail/fortran/2021-April/055991.html
or the recent mail pinging that patch, and the original version at
https://gcc.gnu.org/pipermail/fortran/2020-February/054001.html
doesn't apply cleanly. Can you repost the patch or attach it to this issue?
I think this PR may be the same issue that is affecting
gfortran.dg/ts29113/interoperability/cf-out-descriptor-3.f90
gfortran.dg/ts29113/interoperability/cf-out-descriptor-4.f90
gfortran.dg/ts29113/interoperability/fc-out-descriptor-4.f90
from my new TS29113 testsuite
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574115.html
and I'd like to try out the proposed fix.
My own diagnosis was "Fortran function with C binding fails to automatically
deallocate intent(out) allocated allocatable on entry when called from C".
These testcases additionally trigger nasty errors from the memory allocator.