https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124780
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:020d4084028bb4a5280094be6b8d90fb3085ad5b commit r16-8493-g020d4084028bb4a5280094be6b8d90fb3085ad5b Author: Paul Thomas <[email protected]> Date: Sun Apr 5 10:53:08 2026 +0100 Fortran: Bugs found while testing r16-8436 [PR124780] 2026-04-07 Paul Thomas <[email protected]> gcc/fortran PR fortran/124780 * resolve.cc (resolve_ordinary_assign): Do not add the class data component to an operator expression. * trans-expr.cc (gfc_trans_scalar_assign): If class to class assignment uses ordinary scalar assignment and neither lhs or rhs are class types, do a deep copy for allocatable components. gcc/testsuite/ PR fortran/124780 * gfortran.dg/pr124780.f90: New test.
