https://gcc.gnu.org/g:3ba31387b9add5dcadb617191746e8a36304a0be

commit 3ba31387b9add5dcadb617191746e8a36304a0be
Author: Mikael Morin <mik...@gcc.gnu.org>
Date:   Sat Feb 15 18:29:16 2025 +0100

    Correction régression class_assign_4.f90

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

diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc
index e8606846a4eb..a17eef4243ff 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -3616,12 +3616,6 @@ get_class_info_from_ss (stmtblock_t * pre, gfc_ss *ss, 
tree *eltype,
          tmp2 = gfc_class_len_get (class_expr);
          gfc_add_modify (pre, tmp, tmp2);
        }
-
-      if (rhs_function)
-       {
-         tmp = gfc_class_data_get (class_expr);
-         gfc_conv_descriptor_offset_set (pre, tmp, gfc_index_zero_node);
-       }
     }
   else if (rhs_ss->info->data.array.descriptor)
    {

Reply via email to