[flang] Resolve index in pointer assignment to array element
authorTim Keith <tkeith@nvidia.com>
Tue, 27 Aug 2019 00:37:48 +0000 (17:37 -0700)
committerTim Keith <tkeith@nvidia.com>
Tue, 27 Aug 2019 00:37:52 +0000 (17:37 -0700)
commit396a659413e07344c1825ab28a514a43cc73ed03
tree3c00cf608e2b1440c5fa47c1603475b797dcee0b
parent9de2bf6aa80225a67ef1b5632d4d1bf4f3ae8c7b
[flang] Resolve index in pointer assignment to array element

When the LHS of a pointer assignment is an array element, the
index must be resolved.

Fixed flang-compiler/f18#684.

Original-commit: flang-compiler/f18@c39c7872d42e3490a2c862771893d3099202df63
Reviewed-on: https://github.com/flang-compiler/f18/pull/687
flang/lib/semantics/resolve-names.cc
flang/test/semantics/resolve49.f90