Fortran] PR 92872 – Fix get_CFI_desc
authorTobias Burnus <tobias@codesourcery.com>
Tue, 10 Dec 2019 10:32:12 +0000 (10:32 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 10 Dec 2019 10:32:12 +0000 (11:32 +0100)
commit9995ce07f190d963ec52f52697ccc155dd079568
tree7e8ad8c2c68ee9350a70f95aa17733dbc3fd61cc
parentc175aa77aa8a4ba1d950f2db8c66cee004888212
Fortran] PR 92872 – Fix get_CFI_desc

        PR fortran/92872
        * trans-array.c (get_CFI_desc): Fix cond whether saved desc exists.

        PR fortran/92872
        * gfortran.dg/bind_c_optional-1.f90: New.

From-SVN: r279160
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_optional-1.f90 [new file with mode: 0644]