diff options
Diffstat (limited to 'libgfortran/generated/all_l8.c')
-rw-r--r-- | libgfortran/generated/all_l8.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/generated/all_l8.c b/libgfortran/generated/all_l8.c index 3978f3170986..bc8e50050a19 100644 --- a/libgfortran/generated/all_l8.c +++ b/libgfortran/generated/all_l8.c @@ -55,6 +55,9 @@ all_l8 (gfc_array_l8 *retarray, gfc_array_l8 *array, index_type *pdim) /* Make dim zero based to avoid confusion. */ dim = (*pdim) - 1; rank = GFC_DESCRIPTOR_RANK (array) - 1; + + /* TODO: It should be a front end job to correctly set the strides. */ + if (array->dim[0].stride == 0) array->dim[0].stride = 1; |