[flang] Specific procedures named the same as the generic and a derived type
authorPeter Steinfeld <psteinfeld@nvidia.com>
Mon, 22 Mar 2021 16:04:45 +0000 (09:04 -0700)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Mon, 22 Mar 2021 17:52:50 +0000 (10:52 -0700)
commit5727df2714985f53b2794e9672865554612cc155
treed80d397d7919f0db54d097a365c604600597173d
parent854de7c4d074f1c5d10be08809fa631e53b168b0
[flang] Specific procedures named the same as the generic and a derived type

If you specify a specific procedure of a generic interface that has the same
name as both the generic interface and a preceding derived type, the compiler
would fail an internal call to CHECK().  I fixed this by testing for this
situation when processing specific procedures.  I also added a test that will
cause the call to CHECK() to fail without this new code.

Differential Revision: https://reviews.llvm.org/D99085
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/resolve18.f90