This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
That one is not completely obvious.[Out of bounds] diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c index 44ec72e..1611c3b 100644 --- a/gcc/fortran/array.c +++ b/gcc/fortran/array.c @@ -253,7 +253,7 @@ coarray: - else if (ar->dimen_type[ar->codimen + ar->dimen] == DIMEN_STAR) + else if (ar->dimen_type[ar->codimen + ar->dimen - 1] == DIMEN_STAR)
--- a/gcc/fortran/trans-io.c +++ b/gcc/fortran/trans-io.c @@ -2310,7 +2313,7 @@ gfc_trans_transfer (gfc_code * code) - if (se.ss == NULL) + if (se.ss == NULL || expr->rank == 0)
I'm not sure about that one. I tried adding a `gcc_assert (expr->rank != 0);' in the `else' branch and it passed for me on pr36286.f90 (but I don't have graphite enabled).
All the other changes look good to me (OK for them).
I will now rebuild again with gcc_assert (expr->rank != 0); and post all failures.
TODO: gfc_free_namelist (old->namelist_tail); old->namelist_tail->next = NULAccording to the code in match.c, `namelist_tail' seems to be the last element in the chain so that new elements can be added to `namelist_tail->next'. Then `gfc_undo_symbol' should probably have: gfc_free_namelist (old->namelist_tail->next); old->namelist_tail->next = NULL;
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |