[flang] Better handling of merged generics
authorTim Keith <tkeith@nvidia.com>
Fri, 13 Sep 2019 21:27:33 +0000 (14:27 -0700)
committerTim Keith <tkeith@nvidia.com>
Fri, 13 Sep 2019 21:27:33 +0000 (14:27 -0700)
commitf13cf9f0ed7f5d9b7247973c53dac96380da08ca
treef1409f8a9b296902919243452dcef9f34d30a8e8
parentd43405e4e6d4af8fe5e1d660ceed05f74bb62633
[flang] Better handling of merged generics

If a generic name is use-associated from two different modules and they
both have a specific procedure or both have a derived type with the same
name, report it as an error.

Original-commit: flang-compiler/f18@42369af96d3cca7ca2050592e728e04de8124bd8
Reviewed-on: https://github.com/flang-compiler/f18/pull/741
Tree-same-pre-rewrite: false
flang/lib/semantics/resolve-names.cc
flang/test/semantics/resolve17.f90