https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114781
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-04-19 CC| |anlauf at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. Interestingly, replacing the lines ALLOCATE(arr(1), mold=sample) ! with localsample here it works CALL MOVE_ALLOC(arr, tmparr) by ALLOCATE(tmparr(1), mold=sample) which should be equivalent - the code works fine. The tree-dump for the MOVE_ALLOC part looks as if it misses a _len component that is otherwise set by the ALLOCATE. Not sure if that is relevant, but this is the first thing that caught my attention.