https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92736
--- Comment #2 from Chinoune <chinoune.mehdi at hotmail dot com> ---
(In reply to kargl from comment #1)
> 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'
You introduced a regression and it is your duty to fix it.
At least fix the ambiguous error message which doesn't tell anything about the
problem.
15 | submodule(m2) s1
| 1
16 | use m1, only : i
| 2
Error:
Symbol āiā at (1) conflicts with the symbol at (2)
does 'i' conflict with 'm2'?!