https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92736
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- Not sure the code is conforming, and don't have time to investigate (unless someone is willing to cough up $$). Workaround 1. Remove "use m1, only : i" in submodule(m2) as 'i' is already available from module m2. Workaround 2. Use Fortran's renaming scheme. Thus, change the submodule(m2) to 'Use m1, only : j=>i'