[flang-commits] [flang] [Flang][Semantics] Fix incorrect merging of separate module procedure interfaces during USE association (PR #197173)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Jul 20 10:51:34 PDT 2026
================
----------------
eugeneepshteyn wrote:
What about this case:
```
module parent_mod_9
interface
module subroutine inside_one()
end subroutine
end interface
end module
submodule (parent_mod_9) sub_9
contains
subroutine inside_one()
end subroutine
end submodule
```
Here I think it's an opposite problem: the interface for `inside_one()` has `module`, but the submodule doesn't, so submodule's implementation is not in fact implementation of the interface. I think a similar warning should be also generated in this case.
https://github.com/llvm/llvm-project/pull/197173
More information about the flang-commits
mailing list