Skip to content

Implement submodules #536

Open
Open
@certik

Description

@certik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibIssues related to compiling fortran-lang/stdlib

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions