Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Handle AssocEntityDetails in mis-parsed function reference
Fix issue flang-compiler/f18#574. Array references can be mistaken for function references during parsing. This is handled and fixed by semantics. however, if the symbol in the misparsed array reference was construct associated, then semantics was not handling the case correctly because semantics was only expecting `ObjectEntityDetails`. It was not possible to change the related `GetUltimate` into `GetAssociationRoot` because associated symbols are not always associated to another symbol (variable) but may be assoicated to an expression. Hence, this change allow `AssocEntityDetails` to be also accepted when dealing with array references misparsed as function references. Original-commit: flang-compiler/f18@b6a8b5f Reviewed-on: flang-compiler/f18#672 Tree-same-pre-rewrite: false
- Loading branch information