re PR fortran/60334 (Segmentation fault on character pointer assignments)
authorAndre Vehreschild <vehre@gmx.de>
Sat, 17 Jan 2015 11:07:57 +0000 (11:07 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 17 Jan 2015 11:07:57 +0000 (11:07 +0000)
commitadbfb3f8e04049409f9adcbc746fe43cc25f8a45
treedceacc6b17bbb450a57dc347da50377d03f638f8
parentc39435736f0509200cb5f20022dc19bf722a98a0
re PR fortran/60334 (Segmentation fault on character pointer assignments)

2015-01-17  Andre Vehreschild  <vehre@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  <vehre@gmx.de>

PR fortran/60334
* gfortran.dg/deferred_type_param_6.f90: Add tests for this PR.

From-SVN: r219798
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/deferred_type_param_6.f90