https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103628 --- Comment #3 from seurer at gcc dot gnu.org --- There isn't a check_mod.f90 but there is a check_mod.F90 (Linux is case sensitive) and using that I was able to reproduce.