Skip to content

Case sensitive dummy function name #471

Closed

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.

Activity

  1. added a commit that references this issue on Mar 14, 2025
    a7a2199
  2. gnikit commented on Mar 14, 2025

    @gnikit
    Member

    Fixed now available in v3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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