diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 349e96a2cbc..9ad8e12ed40 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-10-07 Mikael Morin + + * trans-array.c (gfc_conv_section_startstride): Update assertion to + also accept coarrays. + 2011-10-07 Mikael Morin * trans-array.c (gfc_conv_section_startstride): Factor common diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 7cc86ba2673..7f445142969 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -3204,7 +3204,8 @@ gfc_conv_section_startstride (gfc_loopinfo * loop, gfc_ss * ss, int dim, return; } - gcc_assert (ar->dimen_type[dim] == DIMEN_RANGE); + gcc_assert (ar->dimen_type[dim] == DIMEN_RANGE + || ar->dimen_type[dim] == DIMEN_THIS_IMAGE); desc = info->descriptor; start = ar->start[dim]; end = ar->end[dim];