]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/19928 (Reference of constant derived type component causes failure)
authorRichard Sandiford <richard@codesourcery.com>
Thu, 8 Sep 2005 16:06:54 +0000 (16:06 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 8 Sep 2005 16:06:54 +0000 (16:06 +0000)
commit068e7338865ad5fea910a27f87c7007d8def8517
tree11a35e0bc52376bedc27a635471ad8c8e20cb028
parentdcc9eb26a3b11460bfd1fba9430505f274968b63
re PR fortran/19928 (Reference of constant derived type component causes failure)

PR fortran/19928
* trans-array.c (gfc_conv_array_ref): Call gfc_advance_se_ss_chain
after handling scalarized references.  Make "indexse" inherit from
"se" when handling AR_ELEMENTs.
(gfc_walk_variable_expr): Add GFC_SS_SCALAR entries for each
substring or scalar reference that follows an array section.
* trans-expr.c (gfc_conv_variable): When called from within a
scalarization loop, start out with "ref" pointing to the scalarized
part of the reference.  Don't call gfc_advance_se_ss_chain here.

From-SVN: r104035
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr19928-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr19928-2.f90 [new file with mode: 0644]