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

commit a6453e6a7250ab3be353c7582f733e6f61a16bf6
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 415d353b1394..0e478e1d3121 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