summaryrefslogtreecommitdiff
path: root/libgfortran/generated/eoshift3_16.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/eoshift3_16.c')
-rw-r--r--libgfortran/generated/eoshift3_16.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgfortran/generated/eoshift3_16.c b/libgfortran/generated/eoshift3_16.c
index 214f3783d4f..66a507773ac 100644
--- a/libgfortran/generated/eoshift3_16.c
+++ b/libgfortran/generated/eoshift3_16.c
@@ -103,6 +103,11 @@ eoshift3 (gfc_array_char * const restrict ret,
ret->dim[i].stride = (ret->dim[i-1].ubound + 1) * ret->dim[i-1].stride;
}
}
+ else
+ {
+ if (size0 ((array_t *) ret) == 0)
+ return;
+ }
extent[0] = 1;