2017-11-23 Paul Thomas <pault@gcc.gnu.org>
commitbae31501f6b32458061bbc897ef48cbbcd82a1ca
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 09:52:04 +0000 (23 09:52 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 09:52:04 +0000 (23 09:52 +0000)
treefb63a6bad613369a7c94717b06feb22ab3cf50b0
parent3ab76bd4ffe4c50fddd0edcf38d6851cce7e581a
2017-11-23  Paul Thomas  <pault@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  <pault@gcc.gnu.org>

PR fortran/82814
* gfortran.dg/submodule_31.f08: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255094 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_31.f08 [new file with mode: 0644]