[flang] retain binding label of entry subprograms
authorJean Perier <jperier@nvidia.com>
Mon, 9 May 2022 07:49:11 +0000 (09:49 +0200)
committerJean Perier <jperier@nvidia.com>
Mon, 9 May 2022 07:50:17 +0000 (09:50 +0200)
commited0341788af290f4028c0e200f4a8854bfe46e7d
tree46fa56977991868d8f8f0ee70b84d748302cb373
parenta4190037fac06c2b0cc71b8bb90de9e6b570ebb5
[flang] retain binding label of entry subprograms

When processing an entry-stmt in name resolution, attrs_ was
reset before SetBindNameOn was called, causing the symbol to lose
the binding label information.

Differential Revision: https://reviews.llvm.org/D125097
flang/lib/Semantics/resolve-names.cpp
flang/test/Lower/program-units-fir-mangling.f90