[patch, committed] Fix class dummy-array assignment deep copy [PR110877]

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
The master branch has been updated by Jerry DeLisle <[email protected]>:

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

commit r16-8017-gb018656f8c016d1880d57ee79266cdecf98f41fa
Author: Christopher Albert <[email protected]>
Date:   Tue Mar 10 22:39:54 2026 +0100

     Fortran: Fix class dummy-array assignment deep copy [PR110877]

     Recover the class vptr for scalarized elements of nonpointer
     dummy arrays so polymorphic assignment uses the deep-copy path.

             PR fortran/110877

     gcc/fortran/ChangeLog:

             * trans-expr.cc (gfc_trans_assignment_1): Recover the class
             vptr for scalarized elements of nonpointer dummy arrays.

     gcc/testsuite/ChangeLog:

             * gfortran.dg/pr110877.f90: New test.

     Signed-off-by: Christopher Albert <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.