Commit 49b804d0 by Mikael Morin

re PR fortran/50420 ([Coarray] lcobound doesn't accept coarray subcomponents)

	PR fortran/50420
	* trans-types.c (gfc_build_array_type): Don't force lower bound to one
	in the deferred case.

From-SVN: r180151
parent dbeebc56
2011-10-18 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/50420
* trans-types.c (gfc_build_array_type): Don't force lower bound to one
in the deferred case.
2011-10-18 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/50420
* simplify.c (simplify_cobound): Accept non-last-in-ref-chain coarrays.
Don't set already set array ref.
......
......@@ -1254,7 +1254,7 @@ gfc_build_array_type (tree type, gfc_array_spec * as,
for (n = as->rank; n < as->rank + as->corank; n++)
{
if (as->lower[n] == NULL)
if (as->type != AS_DEFERRED && as->lower[n] == NULL)
lbound[n] = gfc_index_one_node;
else
lbound[n] = gfc_conv_array_bound (as->lower[n]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment