PATCH: fortran/25619: temporary array of constant size character type goes wrong
H. J. Lu
hjl@lucon.org
Tue Apr 4 01:22:00 GMT 2006
On Mon, Apr 03, 2006 at 09:08:29PM -0400, Andrew Pinski wrote:
> >
> > On Mon, Apr 03, 2006 at 08:51:40PM -0400, Andrew Pinski wrote:
> > > >
> > > > 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?
> > >
> >
> > I have been using this.
>
> How about adding it to the testsuite :).
>
> Or did you forgot the normal rules for the nth time?
>
I don't know much about Fortran. I was hoping someone would review my
patch and came up with a real testcase.
H.J.
More information about the Fortran
mailing list