This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, fortran] PR35470 - Valid pointer assigment code gives compilation errors
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Mar 2008 11:08:37 -0700
- Subject: Re: [Patch, fortran] PR35470 - Valid pointer assigment code gives compilation errors
- References: <email@example.com> <firstname.lastname@example.org>
Paul Richard Thomas wrote:
:ADDPATCH fortran:OK, thanks Paul,
This bug comes about because check_assumed_size_reference did too much
for too long! In looking for the upper limit of the highest dimension
of an assumed size array, it looped through all the dimensions and all
the references. In consequence, it screwed up a reference line
arr(1)%p, where p is an array, pointer component. In fact, the
resolution of any assumed size reference needs only visit the last
dimension of the first gfc_ref. This patch does just that.
For what it's worth, I think that I was the author of this extravagence!
Bootstrapped and regtested on x86_ia64/FC8 - OK for trunk