[flang] Bug fix: resolve ComponentArraySpec
authorTim Keith <tkeith@nvidia.com>
Thu, 25 Apr 2019 22:05:41 +0000 (15:05 -0700)
committerTim Keith <tkeith@nvidia.com>
Thu, 25 Apr 2019 22:05:41 +0000 (15:05 -0700)
commit048d56cf5f0630662cd2c6d04fda34416b13b472
treefdf64cf99fd3b5de6daf9c2572ab787c00b50d42
parent777b89fdeefb9327579a991cb265a9b1e02557c8
[flang] Bug fix: resolve ComponentArraySpec

This used to work but broke due to coarray spec changes.
The fix is to extend AnalyzeArraySpec to work on ComponentArraySpec
and to call it when we encounter one.

modfile24.f90 tested this case but had the wrong expected results.

Thanks to Jean for finding this.

Original-commit: flang-compiler/f18@7ef4c28a6171d95e383bf0b3ad63915ecf9f849a
Reviewed-on: https://github.com/flang-compiler/f18/pull/430
Tree-same-pre-rewrite: false
flang/lib/semantics/resolve-names-utils.cc
flang/lib/semantics/resolve-names-utils.h
flang/lib/semantics/resolve-names.cc
flang/test/semantics/modfile24.f90