https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104999
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #1 from anlauf at gcc dot gnu.org --- sstride[0] is likely used uninitialized in gfc_simplify_cshift. The corresponding runtime version in libgfortran/intrinsics/cshift0.c initializes this to 0, so the following patch might help here: diff --git a/gcc/fortran/simplify.cc b/gcc/fortran/simplify.cc index 0c15bcb2b0a..233cc42137f 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;