[flang] Changes to improve messages for DO semantics
authorPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 21 Jun 2019 00:02:32 +0000 (17:02 -0700)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 21 Jun 2019 00:07:13 +0000 (17:07 -0700)
commit6e12d0810a01888e8e448519cf95aa27619737e9
treefbcb6b0dfd84996c1bcd21d9aa1e91db1fcd0a5b
parentbf73b95874aa3028f824e669ab956b90b0ee2215
[flang] Changes to improve messages for DO semantics

I changed two things in the messages produced for DO semantic checks --
 - I changed the source location to be specific to where conflicting names are
 declared.
 - I added the conflicting names to the message.

Original-commit: flang-compiler/f18@f39f9ceeae3a6471eae2a4e651d39a0921416b1b
Reviewed-on: https://github.com/flang-compiler/f18/pull/510
flang/lib/semantics/check-do.cc
flang/test/semantics/dosemantics04.f90