re PR fortran/82814 (ICE from submodule character function)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 23 Nov 2017 09:52:04 +0000 (09:52 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 23 Nov 2017 09:52:04 +0000 (09:52 +0000)
commitf36a7f04f65f3e11e2c656e4171657acf59f3655
treefb63a6bad613369a7c94717b06feb22ab3cf50b0
parentd7a160a45ea7ed09247788c708721c2813cf0007
re PR fortran/82814 (ICE from submodule character function)

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.

From-SVN: r255094
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/submodule_31.f08 [new file with mode: 0644]