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

Weird warning from extended range unlabeled DO loop #674

Open
klausler opened this issue Aug 22, 2019 · 3 comments
Open

Weird warning from extended range unlabeled DO loop #674

klausler opened this issue Aug 22, 2019 · 3 comments
Assignees

Comments

@klausler
Copy link
Collaborator

do j=1,5
  go to 1
2 continue
end do
go to 3
1 go to 2
3 continue
end

elicits "label '2' is not in scope" as a warning.

@schweitzpgi
Copy link
Collaborator

Are you saying the message needs to be improved?

I believe the warning is technically true. The goto 2 is jumping into a DO construct.

@klausler
Copy link
Collaborator Author

The warning is distinct from the warning emitted for jumps into labeled DO loops ("branch into loop body from outside", with a pointer to the loop), and confusing because it implies that labels have construct scope, which they don't have.

@sscalpone sscalpone added the bug Something isn't working label Dec 11, 2019
@sscalpone
Copy link
Member

See about improving the error message if this is still around.

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

4 participants