https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66102

--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Mikael Morin from comment #0)
> This test shows a number of memory errors at runtime.
> Some of them are related to pr65792 and pr61831.

And this is a partial fix for what remains after these bugs are fixed.


Index: trans-array.c
===================================================================
--- trans-array.c       (révision 222978)
+++ trans-array.c       (copie de travail)
@@ -4465,7 +4465,10 @@ gfc_conv_resolve_dependencies (gfc_loopinfo * loop

            nDepend = gfc_check_dependency (dest_expr, ss_expr, false);

-         continue;
+         if (nDepend)
+           break;
+         else
+           continue;
        }

       if (dest_expr->symtree->n.sym != ss_expr->symtree->n.sym)

Reply via email to