[flang][runtime] Handle conflicts for derived types with dynamic components.
When creating a temporary for conflicting LHS and RHS we have to deep copy the dynamic (allocatable, automatic) components from RHS to the temp. Otherwise, the conflict may still be present between LHS and temp. gfortran/regression/alloc_comp_assign_1.f90 is an example where the current runtime code produces wrong result: https://github.com/llvm/llvm-test-suite/blob/7b5b5dcbf9bdde729a14722eb67f9c3ab01647c7/Fortran/gfortran/regression/alloc_comp_assign_1.f90#L50 Reviewed By: klausler, tblah Differential Revision: https://reviews.llvm.org/D156364
parent
32683b23
Please register or sign in to comment