You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 nonecontainssubroutineTest(Func)
interface
functionFunc()
endfunction
end interface
endsubroutine
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.
Activity
fix: diagnostic error for interface arguments
gnikit commentedon Mar 14, 2025
Fixed now available in v3.2.1