]> 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)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 27 Jan 2025 09:56:14 +0000 (09:56 +0000)
commit3600b1ff14a459e84bb40bdfea7cd8d2ffd73d8d
tree08d19f53a992e29909dedf046ae43c2adfe8e744
parent92a5c5100c25190622ca86b63586a598952546bf
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.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr118640.f90 [new file with mode: 0644]