Fortran] PR91863 - fix call to bind(C) with array descriptor
authorTobias Burnus <tobias@codesourcery.com>
Mon, 28 Oct 2019 07:33:29 +0000 (07:33 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 28 Oct 2019 07:33:29 +0000 (08:33 +0100)
commit1c02794484c358b1b69363c164ecc39df967eca5
tree906496c3f83650aed85ca5d8f9431a882b87ab05
parent6d099a76a0f6a040a3e678f2bce7fc69cc3257d8
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.

From-SVN: r277502
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind-c-intent-out.f90 [new file with mode: 0644]