Skip to content

Wrong source type originating from parse_f_source #1073

@ivan-pi

Description

@ivan-pi

Description

The function parse_f_source returns the wrong source type for the following module:

module foo
public :: bar
abstract interface
    subroutine bar() bind(c)
    end subroutine
end interface
end module foo

Expected Behaviour

Instead of FPM_UNIT_MODULE (=2) it returns FPM_UNIT_SUBPROGRAM (=4). Removing the bind(c) makes the source parser work correctly.

Version of fpm

Version: 0.8.1, alpha

Platform and Architecture

MacOS

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions