forked from OSchip/llvm-project
[flang] Make SHAPE= argument to C_F_POINTER() sensitive to -Mlargearray
Original-commit: flang-compiler/f18@daaa74bbc8 Reviewed-on: https://github.com/flang-compiler/f18/pull/900 Tree-same-pre-rewrite: false
This commit is contained in:
parent
dd04f72b2b
commit
add998bec1
|
@ -1711,8 +1711,9 @@ IntrinsicProcTable::Implementation::HandleC_F_Pointer(
|
|||
context.messages().Say(
|
||||
"SHAPE= argument to C_F_POINTER() must appear when FPTR= is an array"_err_en_US);
|
||||
}
|
||||
characteristics::DummyDataObject shape{
|
||||
characteristics::TypeAndShape{SubscriptInteger{}.GetType(), 1}};
|
||||
characteristics::DummyDataObject shape{characteristics::TypeAndShape{
|
||||
DynamicType{TypeCategory::Integer, defaults_.subscriptIntegerKind()},
|
||||
1}};
|
||||
shape.intent = common::Intent::In;
|
||||
shape.attrs.set(characteristics::DummyDataObject::Attr::Optional);
|
||||
dummies.emplace_back("shape"s, std::move(shape));
|
||||
|
|
Loading…
Reference in New Issue