https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61831
--- Comment #26 from Jürgen Reuter <juergen.reuter at desy dot de> --- I cooked down the problem to a 140 line test case with which you should be able to find the culprit. Just do: gfortran iso_varying_string.o whizard_test.f90 and run ./a.out It doesn't need any more input files, and only depends on the standard iso_varying_string.f90.