Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix checking of pointer target with association
When checking if the target of a pointer assignment is valid, we weren't following associations. E.g. we complained about the assignment below if `b` had the TARGET attribute but `c` did not: ``` associate(a => b%c) p => a end associate ``` The fix is to change `GetSymbolVector()` to follow associations in creating the chain of symbols from a designator. Add tests for this, and also some other cases where TARGET is on the derived type variable rather than the component (which worked but didn't have tests). Original-commit: flang-compiler/f18@c81c6ba Reviewed-on: flang-compiler/f18#937
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters