Skip to content

Erroneous error message #488

@everythingfunctional

Description

@everythingfunctional

I am trying to convert an existing project to using fpm. Unfortunately (or maybe not), fpm complains about an invalid module name for something that is not defining a module. Granted this is not the kind of code I'd ever expect to actually encounter, but it is something to consider. The specific error message is:

Parse error: empty or invalid name for module
././src/pfm/distributions_m.f90:52:12
   |     module real*8 function get_log_logistic_p(x,a,b,c)
   |            ^

This is at an intermediate step in converting some legacy code, so that real*8 will get removed, but this is a general situation that could arise that the parser needs to handle. The idea is that for module <other_stuff> function | subroutine, this isn't defining a module, so just skip it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions