public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7771] Fortran: ensure intialization of stride array
@ 2022-03-22 19:54 Harald Anlauf
0 siblings, 0 replies; only message in thread
From: Harald Anlauf @ 2022-03-22 19:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:774ab2edcb5f3a24ed3a5cffd1143bd49a69f1ee
commit r12-7771-g774ab2edcb5f3a24ed3a5cffd1143bd49a69f1ee
Author: Harald Anlauf <anlauf@gmx.de>
Date: Tue Mar 22 20:54:18 2022 +0100
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.
Diff:
---
gcc/fortran/simplify.cc | 1 +
1 file changed, 1 insertion(+)
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-22 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 19:54 [gcc r12-7771] Fortran: ensure intialization of stride array Harald Anlauf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).