llvm-project
43abd252 - [flang] Fix corner case of defined component assignment (#142201)

Commit
199 days ago
[flang] Fix corner case of defined component assignment (#142201) For componentwise assignment in derived type intrinsic assignment, the runtime type information's special binding table is currently populated only with type-bound ASSIGNMENT(=) procedures that have the same derived type for both arguments. This restriction excludes all defined assignments for cases that cannot arise in this context, like defined assignments from intrinsic types or incompatible derived types. However, this restriction also excludes defined assignments from distinct but compatible derived types, i.e. ancestors. Loosen it a little to allow them. Fixes https://github.com/llvm/llvm-project/issues/142151.
Author
Parents
Loading