Correction régression nested_array_constructor_3.f90

This commit is contained in:
Mikael Morin 2025-10-17 14:52:38 +02:00
parent 7c185a3928
commit dc8af1a7b2
1 changed files with 2 additions and 2 deletions

View File

@ -2328,12 +2328,11 @@ gfc_set_descriptor (stmtblock_t *block, tree dest, tree src, gfc_expr *src_expr,
}
else if (src_expr->rank != -1
&& src_expr->ts.type == BT_CHARACTER
&& src_expr->ts.deferred
&& !element_size_known (dest))
{
bool bytes_strides = GFC_BYTES_STRIDES_ARRAY_TYPE_P (TREE_TYPE (dest));
dtype = get_dtype_rank_type_size (src_expr->rank, BT_CHARACTER,
bytes_strides, NULL_TREE);
bytes_strides, ss->info->string_length);
}
else
dtype = gfc_get_dtype (TREE_TYPE (dest));
@ -2343,6 +2342,7 @@ gfc_set_descriptor (stmtblock_t *block, tree dest, tree src, gfc_expr *src_expr,
gfc_conv_descriptor_elem_len_set (block, dest, span);
else if (src_expr->rank != -1
&& src_expr->ts.type == BT_CHARACTER
&& ss->info->string_length == NULL_TREE
&& !element_size_known (dest))
{
tree src_desc = src;