[flang-commits] [PATCH] D139059: [flang] Respect function vs subroutine distinction in generic matching

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Nov 30 16:27:01 PST 2022


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

When checking the specific procedures of a generic interface for a
match against a given set of actual arguments, be sure to not match
a function against a subroutine call or vice versa.  (We generally
catch and warn about attempts to declare mixed interfaces, but they
are usually conforming and can be inadvertently created when generics
are merged due to USE and host association.)


https://reviews.llvm.org/D139059

Files:
  flang/docs/Extensions.md
  flang/include/flang/Semantics/expression.h
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/generic03.f90
  flang/test/Semantics/resolve62.f90
  flang/test/Semantics/resolve68.f90
  flang/test/Semantics/resolve77.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139059.479097.patch
Type: text/x-patch
Size: 11436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221201/5b7eac1e/attachment.bin>


More information about the flang-commits mailing list