r257827 - in /trunk/gcc: fortran/ChangeLog fort...
pault@gcc.gnu.org
pault@gcc.gnu.org
Mon Feb 19 22:09:00 GMT 2018
Author: pault
Date: Mon Feb 19 22:09:13 2018
New Revision: 257827
URL: https://gcc.gnu.org/viewcvs?rev=257827&root=gcc&view=rev
Log:
2018-02-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/83344
PR fortran/83975
* resolve.c (resolve_assoc_var): Rearrange the logic for the
determination of the character length of associate names. If
the associate name is missing a length expression or the length
expression is not a constant and the target is not a variable,
make the associate name allocatable and deferred length.
* trans-decl.c (gfc_get_symbol_decl): Null the character length
backend_decl for deferred length associate names that are not
variables. Set 'length' to gfc_index_zero_node for character
associate names, whose character length is a PARM_DECL.
2018-02-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/83344
PR fortran/83975
* gfortran.dg/associate_22.f90: Enable commented out test.
* gfortran.dg/associate_36.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/associate_36.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/associate_22.f90
More information about the Gcc-cvs
mailing list