This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, fortran] PR47523 - Concatenation with deferred length character with lhs variable
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- Date: Sun, 30 Jan 2011 18:53:48 +0100
- Subject: [Patch, fortran] PR47523 - Concatenation with deferred length character with lhs variable
Committed as obvious:
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.
Corrects two goofs in testsuite ChangeLog on 2011-01-28.
Thanks to Thomas for reporting the problem so promptly.
PR47519 is proving to be a much tougher nut to crack :-(
Cheers
Paul