Skip to content

Case sensitive dummy function name #471

Closed
@MeesJanmaat

Description

@MeesJanmaat

Describe the bug
Using an interface with a function as a function argument, where the name of the dummy function is not entirely in lowercase, results in the error No matching declaration found for argument with implicit none.

To Reproduce
MWE:

module t
  implicit none

contains
  subroutine Test(Func)
    interface
      function Func()

      end function
    end interface
  end subroutine
end module

Changing the name Func to func resolves the error, but any other capitalization (e.g. FUNC or fUnC) gives the error. It compiles with gfortran 14.2.0.

Expected behavior
Function names to be case insensitive.

Screenshots
With casing:
Image
Lowercase (no error):
Image

Setup information
VSCode with Modern Fortran (pre-release), fortls 3.2.0; no additional configuration.

Additional context
Possibly related to this issue.

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