https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65086
Jürgen Reuter <juergen.reuter at desy dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.reuter at desy dot de --- Comment #2 from Jürgen Reuter <juergen.reuter at desy dot de> --- I rechecked this. Same situation still with gfortran 9.0. Also ran nagfor. nagfor behaves the same way as gfortran does, so the seg fault is only gone if the intent(in) in sub4 is added.