Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous declaration pointer in error message points to erroneous declaration instead #716

Open
klausler opened this issue Sep 6, 2019 · 0 comments
Assignees

Comments

@klausler
Copy link
Collaborator

klausler commented Sep 6, 2019

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.

@sscalpone sscalpone added the bug Something isn't working label Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants