re PR fortran/61459 (segfault when assigning to allocatable function result from...
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 7 Jul 2014 20:04:05 +0000 (20:04 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 7 Jul 2014 20:04:05 +0000 (20:04 +0000)
commit3af52023d752c432b9ef7e90d8c75576efebf7ab
treea2bc4f9a4d4060ebbf286b8fe2fc12faa345bf3a
parent72732f3ef0f08c0547228a295c1f3a00907d061b
re PR fortran/61459 (segfault when assigning to allocatable function result from matmul result)

2014-07-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61459
PR fortran/58883
* trans-expr.c (fcncall_realloc_result): Use the natural type
for the address expression of 'res_desc'.

2014-07-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61459
PR fortran/58883
* gfortran.dg/allocatable_function_8.f90 : New test

From-SVN: r212339
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_function_8.f90 [new file with mode: 0644]