diff options
Diffstat (limited to 'libgfortran/generated/all_l4.c')
-rw-r--r-- | libgfortran/generated/all_l4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/generated/all_l4.c b/libgfortran/generated/all_l4.c index ddf9be1338e..84062e62327 100644 --- a/libgfortran/generated/all_l4.c +++ b/libgfortran/generated/all_l4.c @@ -55,6 +55,9 @@ all_l4 (gfc_array_l4 *retarray, gfc_array_l4 *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; |