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

Move checks for valid array-spec to check-declarations.cc #933

Merged
merged 1 commit into from Jan 14, 2020

Conversation

tskeith
Copy link
Collaborator

@tskeith tskeith commented Jan 14, 2020

At the time we finish processing an array-spec in resolve-names.cc,
we don't know if the entity is going to be declared ALLOCATABLE later
so we can't check for validity there. In the new test in resolve58.f90
(based on issue #930) we were reporting an error on b and not on a
when it should be the reverse.

The fix is to move array-spec checking to check-declarations.cc,
after name resolution is complete.

Fixes #930.

At the time we finish processing an array-spec in `resolve-names.cc`,
we don't know if the entity is going to be declared ALLOCATABLE later
so we can't check for validity there. In the new test in `resolve58.f90`
(based on issue #930) we were reporting an error on `b` and not on `a`
when it should be the reverse.

The fix is to move array-spec checking to `check-declarations.cc`,
after name resolution is complete.

Fixes #930.
@tskeith tskeith merged commit 7cf6f61 into master Jan 14, 2020
@tskeith tskeith deleted the tsk-issues branch January 14, 2020 21:06
swift-ci pushed a commit to apple/llvm-project that referenced this pull request Apr 9, 2020
At the time we finish processing an array-spec in `resolve-names.cc`,
we don't know if the entity is going to be declared ALLOCATABLE later
so we can't check for validity there. In the new test in `resolve58.f90`
(based on issue flang-compiler/f18#930) we were reporting an error on `b` and not on `a`
when it should be the reverse.

The fix is to move array-spec checking to `check-declarations.cc`,
after name resolution is complete.

Fixes flang-compiler/f18#930.

Original-commit: flang-compiler/f18@c596d2f
Reviewed-on: flang-compiler/f18#933
swift-ci pushed a commit to apple/llvm-project that referenced this pull request Apr 9, 2020
…/tsk-issues

Move checks for valid array-spec to check-declarations.cc

Original-commit: flang-compiler/f18@7cf6f61
Reviewed-on: flang-compiler/f18#933
mem-frob pushed a commit to draperlaboratory/hope-llvm-project that referenced this pull request Oct 7, 2022
At the time we finish processing an array-spec in `resolve-names.cc`,
we don't know if the entity is going to be declared ALLOCATABLE later
so we can't check for validity there. In the new test in `resolve58.f90`
(based on issue flang-compiler/f18#930) we were reporting an error on `b` and not on `a`
when it should be the reverse.

The fix is to move array-spec checking to `check-declarations.cc`,
after name resolution is complete.

Fixes flang-compiler/f18#930.

Original-commit: flang-compiler/f18@c596d2f
Reviewed-on: flang-compiler/f18#933
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

Successfully merging this pull request may close these issues.

None yet

2 participants