https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83551
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 CC| |kargl at gcc dot gnu.org Known to work| |8.0 Known to fail| |7.2.1 --- Comment #2 from kargl at gcc dot gnu.org --- The code compiles with trunk (aka gfortran 8.0). I don't know which changed fixed the issue, so it's unclear if a backport is possible.