https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82814
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Thu Nov 23 09:52:04 2017 New Revision: 255094 URL: https://gcc.gnu.org/viewcvs?rev=255094&root=gcc&view=rev Log: 2017-11-23 Paul Thomas <pa...@gcc.gnu.org> PR fortran/82814 * trans-types.c (gfc_sym_type): If a character function result is missing the charlen backend_decl, use the one from the name- space procedure symbol, if present. 2017-11-23 Paul Thomas <pa...@gcc.gnu.org> PR fortran/82814 * gfortran.dg/submodule_31.f08: New test. Added: trunk/gcc/testsuite/gfortran.dg/submodule_31.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-types.c trunk/gcc/testsuite/ChangeLog