https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102966
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-10-27 Known to work| |11.2.1, 12.0 Status|UNCONFIRMED |WAITING CC| |anlauf at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |10.3.1 --- Comment #2 from anlauf at gcc dot gnu.org --- This is fixed in mainline for gcc-12 and 11-branch: % gfc-11 zyx.f90 -fcheck=all -g % ./a.out At line 3 of file zyx.f90 Fortran runtime error: Allocatable argument 'ar' is not allocated Error termination. Backtrace: #0 0x4007f8 in test at /home/anlauf/gcc-bugs/zyx.f90:3 #1 0x400887 in main at /home/anlauf/gcc-bugs/zyx.f90:4 One would need to bisect which patch fixed this. Recommendation: upgrade to a newer compiler version.