https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116875
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-09-28 Status|UNCONFIRMED |NEW Known to fail| |15.0, 7.5.0 Ever confirmed|0 |1 --- Comment #2 from anlauf at gcc dot gnu.org --- Confirmed. It is an old bug that affects all gfortran versions since at least gcc-7. The issue is triggered by the BLOCK construct. The dump-tree suggests that a decl for S1_POINTER is lost or not generated. I think I've seen at least one other PR with the same pattern.