[flang-commits] [PATCH] D117621: [flang] Intrinsic assignment of distinct but "same" derived types

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jan 18 15:45:36 PST 2022


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

Subclause 7.5.2.4 lists conditions under which two distinct derived
types are to be considered the same type for purposes of argument
association, assignment, and so on.  These conditions are implemented
in evaluate::IsTkCompatibleWith(), but assignment semantics doesn't
use it for testing for intrinsic assignment compatibility.  Fix that.


https://reviews.llvm.org/D117621

Files:
  flang/include/flang/Semantics/type.h
  flang/lib/Semantics/tools.cpp
  flang/lib/Semantics/type.cpp
  flang/test/Semantics/assign08.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117621.401020.patch
Type: text/x-patch
Size: 4063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220118/3274b341/attachment.bin>


More information about the flang-commits mailing list