Skip to content

Commit 69e907a

Browse files
committed
add comment back
1 parent 59f8e3f commit 69e907a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang-rt/lib/runtime/derived-api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ bool RTDEF(ExtendsTypeOf)(const Descriptor &a, const Descriptor &mold) {
138138
return aType == moldType;
139139
}
140140
} else if (const auto *derivedTypeMold{GetDerivedType(mold)}) {
141+
// If A is unlimited polymorphic and is either a disassociated pointer or
142+
// unallocated allocatable, the result is false.
141143
// Otherwise if the dynamic type of A or MOLD is extensible, the result is
142144
// true if and only if the dynamic type of A is an extension type of the
143145
// dynamic type of MOLD.

0 commit comments

Comments
 (0)