http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60717
--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 32509 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32509&action=edit Patch for the PR This patch bootstraps and regtests OK. I will tidy it up a bit tonight. I also wish to check if it can be used to clean up: trans-expr.c(gfc_trans_alloc_subarray_assign) trans-expr.c(gfc_trans_pointer_assign) trans-expr.c(fncall_realloc_result) trans-array.c(trans_associate_var) each of which contains calculation of the offset. Paul