f18
f18 copied to clipboard
Previous declaration pointer in error message points to erroneous declaration instead
module m
abstract interface
subroutine foo
end subroutine
end interface
contains
subroutine foo
end subroutine
end module
elicits
/tmp/bug.f90:7:14: error: 'foo' is already declared in this scoping unit
subroutine foo
^^^
/tmp/bug.f90:7:14: Previous declaration of 'foo'
subroutine foo
^^^
Both parts of the message point to the same declaration.