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
subroutine foo
integer bar
external bar
end subroutine foo
subroutine foo2
integer bar
external bar
end subroutine 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):