https://gcc.gnu.org/g:d78327498326a21b9eb85c261fbf385444217d0b

commit d78327498326a21b9eb85c261fbf385444217d0b
Author: Mikael Morin <[email protected]>
Date:   Sun Nov 8 22:40:35 2026 +0100

    Correction reshape (reshape-complex.f90)
    
    Correction compil'

Diff:
---
 libgfortran/m4/reshape.m4 | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libgfortran/m4/reshape.m4 b/libgfortran/m4/reshape.m4
index 3182e64df94c..4293191cdffc 100644
--- a/libgfortran/m4/reshape.m4
+++ b/libgfortran/m4/reshape.m4
@@ -58,7 +58,7 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret,
   index_type rsize;
   index_type rs;
   index_type rex;
-  'rtype_name` *rptr;
+  char *rptr;
   /* s.* indicates the source array.  */
   index_type scount[GFC_MAX_DIMENSIONS];
   index_type sextent[GFC_MAX_DIMENSIONS];
@@ -66,16 +66,16 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret,
   index_type sstride0;
   index_type sdim;
   index_type ssize;
-  const 'rtype_name` *sptr;
+  const char *sptr;
   /* p.* indicates the pad array.  */
   index_type pcount[GFC_MAX_DIMENSIONS];
   index_type pextent[GFC_MAX_DIMENSIONS];
   index_type pstride[GFC_MAX_DIMENSIONS];
   index_type pdim;
   index_type psize;
-  const 'rtype_name` *pptr;
+  const char *pptr;
 
-  const 'rtype_name` *src;
+  const char *src;
   int sempty, pempty, shape_empty;
   index_type shape_data[GFC_MAX_DIMENSIONS];
 
@@ -148,7 +148,7 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret,
           else
             psize = 0;
         }
-      pptr = pad->base_addr;
+      pptr = (char*) pad->base_addr;
     }
   else
     {
@@ -270,8 +270,8 @@ reshape_'rtype_ccode` ('rtype` * const restrict ret,
                      ssize, pad ? (char *)pad->base_addr : NULL, psize);
       return;
     }
-  rptr = ret->base_addr;
-  src = sptr = source->base_addr;
+  rptr = (char*) ret->base_addr;
+  src = sptr = (char*) source->base_addr;
   rstride0 = rstride[0];
   sstride0 = sstride[0];

Reply via email to