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 6d0784c commit 0b79c37Copy full SHA for 0b79c37
flang/lib/Semantics/check-call.cpp
@@ -56,6 +56,7 @@ static void CheckPassGlobalVariable(
56
}
57
if (const ArraySpec *dims{actualFirstSymbol->GetShape()};
58
dims && dims->IsExplicitShape()) {
59
+ // tricky way to check that array has only one element
60
if (!((*dims)[0].lbound().GetExplicit() ==
61
(*dims)[0].ubound().GetExplicit())) {
62
warn |= true;
@@ -83,6 +84,7 @@ static void CheckPassGlobalVariable(
83
84
85
86
87
88
89
90
0 commit comments