Fortran: Fix character(len=cst) dummies with bind(C) [PR102885]
authorTobias Burnus <tobias@codesourcery.com>
Tue, 26 Oct 2021 08:53:53 +0000 (10:53 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 26 Oct 2021 08:53:53 +0000 (10:53 +0200)
commita31a3d0421f0cf1f7eefacfec8cbf37e7f91600d
tree7f14cbca70d74c8940db0c3691ff1438c27c671e
parent6b8b25575570ffde37cc8997af096514b929779d
Fortran: Fix character(len=cst) dummies with bind(C) [PR102885]

PR fortran/102885

gcc/fortran/ChangeLog:

* trans-decl.c (gfc_conv_cfi_to_gfc): Properly handle nonconstant
character lenghts.

gcc/testsuite/ChangeLog:

* gfortran.dg/lto/bind-c-char_0.f90: New test.
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/lto/bind-c-char_0.f90 [new file with mode: 0644]