]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix for CHARACTER(len=*) dummies with bind(C) [PR115390]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 18 Jun 2024 19:57:19 +0000 (21:57 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 19 Jun 2024 16:33:22 +0000 (18:33 +0200)
commit954f9011c4923b72f42cc6ca8460333e7c7aad98
treee2eaaacf84d08030fc02eaba0762d2c09d8c7325
parent3dfc28dbbd21b1d708aa40064380ef4c42c994d7
Fortran: fix for CHARACTER(len=*) dummies with bind(C) [PR115390]

gcc/fortran/ChangeLog:

PR fortran/115390
* trans-decl.cc (gfc_conv_cfi_to_gfc): Move derivation of type sizes
for character via gfc_trans_vla_type_sizes to after character length
has been set.

gcc/testsuite/ChangeLog:

PR fortran/115390
* gfortran.dg/bind_c_char_11.f90: New test.
gcc/fortran/trans-decl.cc
gcc/testsuite/gfortran.dg/bind_c_char_11.f90 [new file with mode: 0644]