This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PATCH: fortran/25619: temporary array of constant size character type goes wrong
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: hjl at lucon dot org (H. J. Lu)
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 3 Apr 2006 20:51:40 -0400 (EDT)
- Subject: Re: PATCH: fortran/25619: temporary array of constant size character type goes wrong
>
> When we copy temporary character array, we always deference the
> result even if it shouldn't be deferenced. This patch checks if
> the result is a pointer before deferencing it.
>
>
> H.J.
> --
> 2006-04-03 H.J. Lu <hongjiu.lu@intel.com>
>
> PR fortran/25619
> * trans-array.c (gfc_conv_expr_descriptor): Only dereference
> character pointer when copying temporary.
Testcase?
-- Pinski