We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af5c3a commit 313b52fCopy full SHA for 313b52f
flang-rt/lib/runtime/pointer.cpp
@@ -267,8 +267,10 @@ bool RTDEF(PointerIsAssociatedWith)(
267
if (!target) {
268
return pointer.raw().base_addr != nullptr;
269
}
270
- if (!target->raw().base_addr ||
271
- (target->raw().type != CFI_type_struct && target->ElementBytes() == 0)) {
+ if (!target->raw().base_addr || target->ElementBytes() == 0 ||
+ target->Elements() == 0) {
272
+ // F2023, 16.9.20, p5, case (v)-(vi): don't associate pointers with
273
+ // targets that have zero sized storage sequence.
274
return false;
275
276
int rank{pointer.rank()};
0 commit comments