]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix 'fn spec' for deferred character length
authorTobias Burnus <tobias@codesourcery.com>
Tue, 19 Oct 2021 14:38:56 +0000 (16:38 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 19 Oct 2021 14:43:56 +0000 (16:43 +0200)
commitff0eec94e87dfb7dc387f120ca5ade2707aecf50
treea3ca049e6530d7e7834eca314a4a55199dfe704b
parent7ef0cc444488e0bfa9b63d46307105e78ffc17a6
Fortran: Fix 'fn spec' for deferred character length

Shows now up with gfortran.dg/deferred_type_param_6.f90 due to more ME
optimizations, causing fails without this commit.

gcc/fortran/ChangeLog:

* trans-types.c (create_fn_spec): For allocatable/pointer
character(len=:), use 'w' not 'R' as fn spec for the length dummy
argument.
gcc/fortran/trans-types.c