https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684
--- Comment #3 from Tomáš Trnka <trnka at scm dot com> --- Created attachment 55134 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55134&action=edit testcase reduced to three files This is the most reduced testcase I have found. It was created from the previous one by concatenating files 01 through 06 and dropping files 08 through 12. Again, compile with "gfortran -c *.f90" to reproduce. Concatenating any of these remaining three files together makes the bug disappear.