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 ad5961e commit d8782fcCopy full SHA for d8782fc
flang/lib/Semantics/check-declarations.cpp
@@ -949,7 +949,7 @@ void CheckHelper::CheckObjectEntity(
949
"!DIR$ IGNORE_TKR(R) may not apply in an ELEMENTAL procedure"_err_en_US);
950
}
951
if (IsPassedViaDescriptor(symbol)) {
952
- if (IsAllocatableOrObjectPointer(&symbol)) {
+ if (IsAllocatableOrObjectPointer(&symbol) && !ignoreTKR.test(common::IgnoreTKR::Pointer)) {
953
if (inExplicitExternalInterface) {
954
Warn(common::UsageWarning::IgnoreTKRUsage,
955
"!DIR$ IGNORE_TKR should not apply to an allocatable or pointer"_warn_en_US);
0 commit comments