Remove duplication between lookupSubBndrOcc and lookupExportChild
lookupSubBndrOcc is used in expressions such as x { y = 5 } to resolve field labels such as y.
lookupExportChild is used in export lists such as T(A, x) to lookup A and x.
They contain very similar logic but it is duplicated in two places which caused #13528 (closed).
It should be easy to refactor them them to deduplicate the logic.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Task |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |