Commit 5551a54e by Mikael Morin Committed by Mikael Morin

resolve.c (resolve_array_ref): Set array_ref's dimen field (and the associated…

resolve.c (resolve_array_ref): Set array_ref's dimen field (and the associated dimen_type) in the full array...

	* resolve.c (resolve_array_ref): Set array_ref's dimen field (and the
	associated dimen_type) in the full array ref case.

From-SVN: r179685
parent 9b701a45
2011-10-07 Mikael Morin <mikael.morin@sfr.fr>
* resolve.c (resolve_array_ref): Set array_ref's dimen field (and the
associated dimen_type) in the full array ref case.
2011-10-07 Mikael Morin <mikael.morin@sfr.fr>
* trans-intrinsic.c (walk_coarray): New function.
(convert_element_to_coarray_ref): Move code to walk_coarray. Remove.
(trans-this_image, trans_image_index, conv_intrinsic_cobound):
......
......@@ -4644,8 +4644,23 @@ resolve_array_ref (gfc_array_ref *ar)
}
}
if (ar->type == AR_FULL && ar->as->rank == 0)
ar->type = AR_ELEMENT;
if (ar->type == AR_FULL)
{
if (ar->as->rank == 0)
ar->type = AR_ELEMENT;
/* Make sure array is the same as array(:,:), this way
we don't need to special case all the time. */
ar->dimen = ar->as->rank;
for (i = 0; i < ar->dimen; i++)
{
ar->dimen_type[i] = DIMEN_RANGE;
gcc_assert (ar->start[i] == NULL);
gcc_assert (ar->end[i] == NULL);
gcc_assert (ar->stride[i] == NULL);
}
}
/* If the reference type is unknown, figure out what kind it is. */
......
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