https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94585
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- The code compiles with 8.3.1, 9.2.1, and 10.0.0. Please to a newer version of gfortran. I believe the 7-branch has been clsed, so there is no chance that this will be fixed in 7.