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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Mon Oct 28 07:33:29 2019
New Revision: 277502

URL: https://gcc.gnu.org/viewcvs?rev=277502&root=gcc&view=rev
Log:
Fortran] PR91863 - fix call to bind(C) with array descriptor

        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.

        PR fortran/91863
        * gfortran.dg/bind-c-intent-out.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/bind-c-intent-out.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to