[Patch, fortran] PR83344 - Use of uninitialized memory with ASSOCIATE and strings
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sun Feb 18 15:48:00 GMT 2018
Bootstraps and regtests on FC27/x86_64 - OK for trunk?
Paul
2018-02-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/83344
* resolve.c (resolve_assoc_var): Character associate names that
have no length expression that have variable targets and are
not deferred length have assumed length.
* trans-decl.c (gfc_get_symbol_decl): Set 'length' to
gfc_index_zero_node for character associate names, whose string
length is a PARM_DECL.
2018-02-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/83344
* gfortran.dg/associate_36.f90: New test.
More information about the Fortran
mailing list