[flang-commits] [PATCH] D150915: [flang] Fix handling of USE association of generics with homonymous specifics

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu May 18 15:38:10 PDT 2023


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

Fortran allows a generic procedure interface and a procedure to have the same
name in the same scope so long as procedure is a specific procedure of
the generic interface.  When a generic interface is being USE associated into
a scope that already has a symbol (generic, subprogram, or derived type) of
the same name, the two symbols are combined when possible.  This wasn't   
working properly when two generics that both had homonymous specifics were
being merged.

Fixes https://github.com/llvm/llvm-project/issues/60228.


https://reviews.llvm.org/D150915

Files:
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/resolve17.f90
  flang/test/Semantics/symbol27.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150915.523587.patch
Type: text/x-patch
Size: 5740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230518/e271449e/attachment.bin>


More information about the flang-commits mailing list