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 dc8fde0 commit 5489010Copy full SHA for 5489010
flang-rt/lib/runtime/assign.cpp
@@ -366,7 +366,7 @@ RT_API_ATTRS int AssignTicket::Begin(WorkQueue &workQueue) {
366
"assignment to unallocated allocatable",
367
to_.rank(), from_->rank());
368
}
369
- } else if (!to_.IsAllocated()) {
+ } else if (!to_.IsAllocated() && to_.Elements()) {
370
workQueue.terminator().Crash(
371
"Assign: left-hand side variable is neither allocated nor allocatable");
372
0 commit comments