From 774ab2edcb5f3a24ed3a5cffd1143bd49a69f1ee Mon Sep 17 00:00:00 2001 From: Harald Anlauf Date: Tue, 22 Mar 2022 20:54:18 +0100 Subject: Fortran: ensure intialization of stride array gcc/fortran/ChangeLog: PR fortran/104999 * simplify.cc (gfc_simplify_cshift): Ensure temporary holding source array stride is initialized. --- gcc/fortran/simplify.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/fortran') diff --git a/gcc/fortran/simplify.cc b/gcc/fortran/simplify.cc index 0c15bcb..233cc42 100644 --- a/gcc/fortran/simplify.cc +++ b/gcc/fortran/simplify.cc @@ -2134,6 +2134,7 @@ gfc_simplify_cshift (gfc_expr *array, gfc_expr *shift, gfc_expr *dim) resultvec = XCNEWVEC (gfc_expr *, arraysize); + sstride[0] = 0; extent[0] = 1; count[0] = 0; -- cgit v1.1