https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118640
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:5cb69a5e4f136dd92c2182d6744aff2c12291a4f commit r14-11398-g5cb69a5e4f136dd92c2182d6744aff2c12291a4f Author: Paul Thomas <pa...@gcc.gnu.org> Date: Mon Jan 27 09:55:26 2025 +0000 Fortran: ICE in gfc_conv_expr_present w. defined assignment [PR118640] 2025-01-27 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/118640 * resolve.cc (generate_component_assignments): Make sure that the rhs temporary does not pick up the optional attribute from the lhs. gcc/testsuite/ PR fortran/118640 * gfortran.dg/pr118640.f90: New test. (cherry picked from commit 3600b1ff14a459e84bb40bdfea7cd8d2ffd73d8d)