llvm/flang/lib
Tim Keith e064f4f4b9 [flang] Fix bug in rewriting function reference
`a(i)` is parsed as a function reference and needs to be converted to an
array element reference when `a` is an object entity. That determination
was wrong if the symbol for `a` was a symbol representing host-association
or use-association. In that case we need to get to the original symbol
by calling `GetUltimate()` on the symbol.

This was causing symbol09.f90 to get a compilation error because an
array element reference looked like a call to a non-pure function, which
is prohibited inside a DO CONCURRENT.

Original-commit: flang-compiler/f18@221e6c52c5
Reviewed-on: https://github.com/flang-compiler/f18/pull/216
2018-10-24 13:39:17 -07:00
..
common [flang] improve naming, silence bogus warnings 2018-10-15 12:17:30 -07:00
evaluate [flang] Add -i8, -r8, &c. options to f18 development driver 2018-10-16 14:42:22 -07:00
parser [flang] Improved error messages: 2018-10-24 11:03:49 -07:00
semantics [flang] Fix bug in rewriting function reference 2018-10-24 13:39:17 -07:00
CMakeLists.txt