re PR fortran/50420 ([Coarray] lcobound doesn't accept coarray subcomponents)
PR fortran/50420 * trans-array.c (gfc_conv_expr_descriptor): Use loop.dimen instead of ndim for the descriptor's rank. From-SVN: r180143
This commit is contained in:
parent
a04b23d8a4
commit
700535b75f
@ -1,3 +1,9 @@
|
||||
2011-10-18 Mikael Morin <mikael@gcc.gnu.org>
|
||||
|
||||
PR fortran/50420
|
||||
* trans-array.c (gfc_conv_expr_descriptor): Use loop.dimen instead of
|
||||
ndim for the descriptor's rank.
|
||||
|
||||
2011-10-18 Mikael Morin <mikael@gcc.gnu.org>
|
||||
|
||||
PR fortran/50420
|
||||
|
@ -6150,13 +6150,13 @@ gfc_conv_expr_descriptor (gfc_se * se, gfc_expr * expr, gfc_ss * ss)
|
||||
gfc_rank_cst[dim], stride);
|
||||
}
|
||||
|
||||
for (n = ndim; n < ndim + codim; n++)
|
||||
for (n = loop.dimen; n < loop.dimen + codim; n++)
|
||||
{
|
||||
from = loop.from[n];
|
||||
to = loop.to[n];
|
||||
gfc_conv_descriptor_lbound_set (&loop.pre, parm,
|
||||
gfc_rank_cst[n], from);
|
||||
if (n < ndim + codim - 1)
|
||||
if (n < loop.dimen + codim - 1)
|
||||
gfc_conv_descriptor_ubound_set (&loop.pre, parm,
|
||||
gfc_rank_cst[n], to);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user