[Patch, fortran] PR33566 - fortran : wrong rank of derived type parameters array components
Jerry DeLisle
jvdelisle@verizon.net
Tue Oct 2 04:56:00 GMT 2007
Paul Richard Thomas wrote:
> :ADDPATCH fortran:
>
> This one is really annoying because I fixed the problem for use
> associated derived type parameters just recently - I never even
> thought to check that parameters in the same scope as the expression
> worked OK. Anyway, this works by removing the check for use
> association in the previous patch. I also let the simplifier do its
> thing for full array references; otherwise, any array reference to a
> derived type parameter is treated as a variable expression.
>
> The testcase is the reporter's, with the addition of a second
> previously failing expression.
>
> Bootstrapped and regtested on x86_ia64/FC5 - OK for trunk?
>
> Paul
>
> 2007-09-29 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/33566
> * primary.c (gfc_match_rvalue): Make all expressions with array
> references to structure parameters into variable expressions.
>
> 2007-09-29 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/33566
> * gfortran.dg/derived_comp_array_ref_5.f90: New test.
>
>
OK to commit. Looks clean!
Jerry
More information about the Fortran
mailing list