]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgfortran/m4/eoshift3.m4
libgfortran.h (GFC_DTYPE_COPY): New macro.
[thirdparty/gcc.git] / libgfortran / m4 / eoshift3.m4
index e3ac06a1baed38b8202e932e6dae1c8579a5d10b..a8077496760fe9ce9818cdad6d3b62baad607b28 100644 (file)
@@ -90,7 +90,7 @@ eoshift3 (gfc_array_char * const restrict ret,
 
       ret->base_addr = xmallocarray (arraysize, size);
       ret->offset = 0;
-      ret->dtype = array->dtype;
+      GFC_DTYPE_COPY(ret,array);
       for (i = 0; i < GFC_DESCRIPTOR_RANK (array); i++)
         {
          index_type ub, str;