Closed
Description
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:
Lowercase (no error):
Setup information
VSCode with Modern Fortran (pre-release), fortls 3.2.0; no additional configuration.
Additional context
Possibly related to this issue.