[Bug fortran/92736] Error when using a variable from a module in a submodule and its parent module.
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 30 16:36:00 GMT 2019
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'
More information about the Gcc-bugs
mailing list