]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: ICE in gfc_conv_expr_present w. defined assignment [PR118640]
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 27 Jan 2025 09:55:26 +0000 (09:55 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 10 Mar 2025 02:55:16 +0000 (19:55 -0700)
commit5cb69a5e4f136dd92c2182d6744aff2c12291a4f
tree927cc194454912bb6fe591d21fc6018832dc3c4c
parent89fa4d8996602d8471dec5c1a7b47d0de50621f3
Fortran: ICE in gfc_conv_expr_present w. defined assignment [PR118640]

2025-01-27  Paul Thomas  <pault@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)
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr118640.f90 [new file with mode: 0644]