OSDN Git Service

2011-01-30 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Jan 2011 17:50:01 +0000 (17:50 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Jan 2011 17:50:01 +0000 (17:50 +0000)
commit2de379fb8af6ff6269c87daf13c487c6d40e3664
treeb8da97f66b986afd0a1f0f8d4f158a5b4dbd22d2
parentf2a584ace6bca5c9a44a0944f3e4fb06da1d9d64
2011-01-30  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47523
* trans-expr.c (gfc_trans_assignment_1): If the rhs is an op
expr and is assigned to a deferred character length scalar,
make sure that the function is called before reallocation,
so that the length is available. Include procedure pointer
and procedure pointer component rhs as well.

2011-01-30  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47523
* trans-expr.c (gfc_trans_assignment_1): If the rhs is an op
expr and is assigned to a deferred character length scalar,
make sure that the function is called before reallocation,
so that the length is available. Include procedure pointer
and procedure pointer component rhs as well.

PR fortran/45170
PR fortran/35810
PR fortran/47350
* gfortran.dg/allocatable_function_5.f90: New test not added by
mistake on 2011-01-28.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169413 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_function_5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/realloc_on_assign_5.f03 [new file with mode: 0644]