https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91863
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- Author: burnus Date: Mon Oct 28 09:36:27 2019 New Revision: 277505 URL: https://gcc.gnu.org/viewcvs?rev=277505&root=gcc&view=rev Log: Fortran] PR91863 - fix call to bind(C) with array descriptor Backport from mainline 2019-10-28 Tobias Burnus <tob...@codesourcery.com> PR fortran/91863 * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Don't free data memory as that's done on the Fortran side. (gfc_conv_procedure_call): Handle void* pointers from gfc_conv_gfc_desc_to_cfi_desc. Backport from mainline 2019-10-28 Tobias Burnus <tob...@codesourcery.com> PR fortran/91863 * gfortran.dg/bind-c-intent-out.f90: New. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/bind-c-intent-out.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/trans-expr.c branches/gcc-9-branch/gcc/testsuite/ChangeLog