https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60334
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Jan 17 11:07:57 2015 New Revision: 219798 URL: https://gcc.gnu.org/viewcvs?rev=219798&root=gcc&view=rev Log: 2015-01-17 Andre Vehreschild <ve...@gmx.de> PR fortran/60334 * trans-decl.c (gfc_get_symbol_decl):Use a ref on the string length when the symbol is declared to be a result. * trans-expr.c (gfc_conv_procedure_call): Strip deref on the string length when functions are nested and the string length is a reference already. 2015-01-17 Andre Vehreschild <ve...@gmx.de> PR fortran/60334 * gfortran.dg/deferred_type_param_6.f90: Add tests for this PR. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/deferred_type_param_6.f90