[flang] Add missing source location to a semantic error message
authorPeter Klausler <pklausler@nvidia.com>
Tue, 4 Oct 2022 19:41:48 +0000 (12:41 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 6 Oct 2022 20:50:36 +0000 (13:50 -0700)
commitddb35533e63a5cecd98e82247d1c0124beb37c6e
treedbea7ca563791064f4170ad1b7cd08e39ccd9504
parentaa065c016bd91412275054c450e09b0205a3eeee
[flang] Add missing source location to a semantic error message

Ensure that the semantic error "An allocatable or pointer component
reference must be applied to a scalar base" is emitted with a source
code location.

Differential Revision: https://reviews.llvm.org/D135215
flang/lib/Semantics/expression.cpp
flang/test/Semantics/expr-errors04.f90