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
When the same external function is declared in two separate subroutines, fortls might report the second one as a duplicate declaration.
In the following code
subroutinefoointeger bar
external bar
endsubroutine foosubroutinefoo2integer bar
external bar
endsubroutine foo2
fortls reports an error (Variable "bar" declared twice in scope) in the line external bar in the foo2 subroutine (see the screenshot below).
To Reproduce
Given the code above in a file test_external_duplicates.f90, executing
Describe the bug
When the same external function is declared in two separate subroutines,
fortls
might report the second one as a duplicate declaration.In the following code
fortls
reports an error (Variable "bar" declared twice in scope
) in the lineexternal bar
in thefoo2
subroutine (see the screenshot below).To Reproduce
Given the code above in a file
test_external_duplicates.f90
, executinggives
Expected behavior
I would expect that no error is being reported.
Screenshots & Animations
Setup information (please complete the following information):
The text was updated successfully, but these errors were encountered: