Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix bad parse tree rewrite into a substring (llvm#98407)
Data designators like "a(j:k)" are parsed into array section references, but once rank and type information is in hand, some of them turn out to actually be substring references. The code that recognizes these cases was suffering from a "false positive" in the case of a construct entity in a SELECT RANK construct due to the use of a predicate member function (Symbol::IsObjectArray) that only works on ObjectEntityDetails symbols. Fix the test to use the more general Symbol::Rank() member function.
- Loading branch information