Fortran: Allow pointer deferred length associate selectors. [PR93794]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 8 Jan 2021 10:15:22 +0000 (10:15 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 8 Jan 2021 10:15:22 +0000 (10:15 +0000)
commit21c1a30fc73105af50c5e717cb99dc3becabf8fa
tree6eecd689dee9f017e9c6236a432d96f5cbcd3197
parentc231fca5de8e455b263495b20a416a5e47d1029a
Fortran: Allow pointer deferred length associate selectors. [PR93794]

2021-01-05  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/93794
* trans-expr.c (gfc_conv_component_ref): Remove the condition
that deferred character length components only be allocatable.

gcc/testsuite/
PR fortran/93794
* gfortran.dg/deferred_character_35.f90 : New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/deferred_character_35.f90 [new file with mode: 0644]