https://gcc.gnu.org/g:e63f0ff3f869a88f7322a94fb2d58f570417fcc7

commit e63f0ff3f869a88f7322a94fb2d58f570417fcc7
Author: Mikael Morin <mik...@gcc.gnu.org>
Date:   Thu May 15 17:25:01 2025 +0200

    Correction régression char_allocation_1

Diff:
---
 gcc/fortran/trans-array.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc
index 018290923ef2..9bdf0b05022e 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -6277,7 +6277,6 @@ gfc_trans_array_bounds (tree type, gfc_symbol * sym, tree 
* poffset,
   tree eltype = gfc_get_element_type (type);
   tree elem_len = fold_convert_loc (input_location, gfc_array_index_type,
                                    TYPE_SIZE_UNIT (eltype));
-  gcc_assert (INTEGER_CST_P (elem_len));
   size = gfc_index_one_node;
   offset = gfc_index_zero_node;
   tree spacing = GFC_TYPE_ARRAY_SPACING (type, 0);

Reply via email to