Open
Description
Original issue: https://gitlab.com/lfortran/lfortran/-/issues/694
Current status: they parse to ASR, but as separate modules, and then they compile to LLVM as unrelated functionality, so the interface in the parent module does not have an implementation and fails at linking. A simple test was added in https://gitlab.com/lfortran/lfortran/-/merge_requests/1736:
$ lfortran submodule_03.f90
Undefined symbols for architecture arm64:
"___module_submodule_03_mod_f", referenced from:
_main in a.out.tmp.o
ld: symbol(s) not found for architecture arm64