https://gcc.gnu.org/g:70a6ff6742e65848b342139aa5c9cd1f6efba942
commit 70a6ff6742e65848b342139aa5c9cd1f6efba942 Author: Mikael Morin <[email protected]> Date: Mon Nov 9 10:42:21 2026 +0100 Correction correction reshape.m4 (correction reshape-complex.f90) Diff: --- libgfortran/m4/reshape.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgfortran/m4/reshape.m4 b/libgfortran/m4/reshape.m4 index 14f34dab283b..1bd2ddb1a3d1 100644 --- a/libgfortran/m4/reshape.m4 +++ b/libgfortran/m4/reshape.m4 @@ -312,7 +312,7 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret, rcount[n] = 0; /* We could precalculate these products, but this is a less frequently used path so probably not worth it. */ - rptr = ('rtype_name` *) (((char*) rptr) + rstride[n] * rextent[n]); + rptr = ('rtype_name` *) (((char*) rptr) - rstride[n] * rextent[n]); n++; if (n == rdim) { @@ -335,7 +335,7 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret, scount[n] = 0; /* We could precalculate these products, but this is a less frequently used path so probably not worth it. */ - src = (const 'rtype_name` *) (((const char*) src) + sstride[n] * sextent[n]); + src = (const 'rtype_name` *) (((const char*) src) - sstride[n] * sextent[n]); n++; if (n == sdim) {
