https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115260
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |9.5.0 Last reconfirmed| |2024-05-28 Priority|P3 |P4 Known to fail| |10.5.0, 11.4.0, 12.3.0, | |13.3.0, 14.1.0, 15.0 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |wrong-code --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. The tree-dump suggests that the unpack frees the component arrays data, idata so that the final prints access freed memory. In the testcase this only happens for the explicit-size dummies when they are intent(inout), but not for intent(in).