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

commit e7b92df0b596b70bcf5b653982420894ea190870
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 18e7ece7d337..6c1df9abb7af 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -6396,7 +6396,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