[flang] Add MessageHandler::Say2.
authorTim Keith <tkeith@nvidia.com>
Wed, 30 May 2018 21:49:40 +0000 (14:49 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 30 May 2018 21:49:40 +0000 (14:49 -0700)
commite820c545d768ba90b9d56913bd4b4ebc744eed2a
tree0503b77ffbad79400910d3207b0ab88eb6249442
parent06440bc34de41532e11a9161c333cb898d860bf0
[flang] Add MessageHandler::Say2.

This handles the common case of an error message referring to
a name, and an attached message referring to another name.
For example, reporting an error where a name is already declared
and mentioning the previous declaration.

Original-commit: flang-compiler/f18@901b50dcf2860c5fcd5f94f0198981fe871d6716
Reviewed-on: https://github.com/flang-compiler/f18/pull/97
Tree-same-pre-rewrite: false
flang/lib/semantics/resolve-names.cc