https://gcc.gnu.org/g:65f5a193f46cd114897180d9c8cdc5f312fcf46b

commit 65f5a193f46cd114897180d9c8cdc5f312fcf46b
Author: Mikael Morin <[email protected]>
Date:   Fri Oct 3 10:56:22 2025 +0200

    Correction partielle class_allocate_22.f90

Diff:
---
 gcc/fortran/trans-expr.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/trans-expr.cc b/gcc/fortran/trans-expr.cc
index 68794ec6b08a..e8b165f19e33 100644
--- a/gcc/fortran/trans-expr.cc
+++ b/gcc/fortran/trans-expr.cc
@@ -1291,7 +1291,7 @@ gfc_conv_class_to_class (gfc_se *parmse, gfc_expr *e, 
gfc_typespec class_ts,
                                         true);
        }
       else
-       gfc_add_modify (&parmse->post, parmse->expr, ctree);
+       gfc_copy_descriptor (&parmse->post, parmse->expr, ctree);
     }
 
   /* Set the vptr.  */

Reply via email to