[Bug fortran/92277] [10 Regression] ICE with assumed rank in gfc_conv_gfc_desc_to_cfi_desc

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 4 14:15:00 GMT 2019


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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Mon Nov  4 14:14:43 2019
New Revision: 277781

URL: https://gcc.gnu.org/viewcvs?rev=277781&root=gcc&view=rev
Log:
Backport Fortran BIND(C) fixes

        gcc/fortran/
        Backport from mainline
        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92284.
        * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Free CFI descriptor
        at the end; partial revised revert of Rev. 277502.


        gcc/testsuite/
        Backport from mainline
        2019-10-31  Jakub Jelinek  <jakub@redhat.com>

        PR fortran/92284
        * gfortran.dg/bind_c_array_params_3_aux.c: Include
        ../../../libgfortran/ISO_Fortran_binding.h rather than
        ISO_Fortran_binding.h.

        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92284
        * gfortran.dg/bind-c-intent-out.f90: Update expected dump;
        extend comment.
        * gfortran.dg/bind_c_array_params_3.f90: New.
        * gfortran.dg/bind_c_array_params_3_aux.c: New.

        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92277
        * fortran.dg/pr92277.f90: New.


Added:
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/bind_c_array_params_3.f90
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/bind_c_array_params_3_aux.c
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr92277.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
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/bind-c-intent-out.f90
    branches/gcc-9-branch/libgfortran/runtime/ISO_Fortran_binding.c


More information about the Gcc-bugs mailing list