https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123947
--- Comment #4 from Christopher Albert <albert at tugraz dot at> --- Created attachment 63710 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63710&action=edit Avoid ICE in recursive allocatable deep copy The fix restricts the recursive-array helper path in structure_alloc_comps to direct self-recursion (not any mutually-recursive “seen” type) and caches generated copy-helper wrappers, preventing the bad deep-copy code path that triggered the gfc_build_addr_expr ICE.
