This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR35470 - Valid pointer assigment code gives compilation errors


Paul Richard Thomas wrote:
:ADDPATCH fortran:

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

OK, thanks Paul,

Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]