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 9189ede commit f572da2Copy full SHA for f572da2
flang/lib/Evaluate/check-expression.cpp
@@ -1502,9 +1502,9 @@ class CopyInOutExplicitInterface {
1502
return false;
1503
}
1504
auto actualType{characteristics::TypeAndShape::Characterize(actual_, fc_)};
1505
- bool actualIsPolymorphic{
1506
- actualType && actualType->type().IsPolymorphic()};
1507
- if (actualIsPolymorphic && !dummyObj_.IsPassedByDescriptor(/*isBindC*/false)) {
+ if (actualType && actualType->type().IsPolymorphic() &&
+ !actualType->type().IsAssumedType() &&
+ !dummyObj_.IsPassedByDescriptor(/*isBindC*/false)) {
1508
// Not passing a descriptor, so will need to make a copy of the data
1509
// with a proper type.
1510
return true;
0 commit comments