https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68237
--- Comment #6 from Martin Reinecke <mar...@mpa-garching.mpg.de> --- Ah, my bad ... I still had an old m1.smod lying on disk from earlier tests! This slightly changed test case should demonstrate the problem: module m1 interface module subroutine bar end subroutine end interface end module m1 submodule (m1) m2 contains module procedure foo end procedure end submodule