blob: 7003242304d5f0c5ae3317cec79279793d49d347 [file] [log] [blame]
CarolineConcatto64ab3302020-02-25 15:11:521//===-- lib/Semantics/pointer-assignment.cpp ------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "pointer-assignment.h"
10#include "flang/Common/idioms.h"
11#include "flang/Common/restorer.h"
12#include "flang/Evaluate/characteristics.h"
13#include "flang/Evaluate/expression.h"
14#include "flang/Evaluate/fold.h"
15#include "flang/Evaluate/tools.h"
16#include "flang/Parser/message.h"
17#include "flang/Parser/parse-tree-visitor.h"
18#include "flang/Parser/parse-tree.h"
19#include "flang/Semantics/expression.h"
20#include "flang/Semantics/symbol.h"
21#include "flang/Semantics/tools.h"
Caroline Concatto8670e492020-02-28 15:11:0322#include "llvm/Support/raw_ostream.h"
CarolineConcatto64ab3302020-02-25 15:11:5223#include <optional>
24#include <set>
25#include <string>
26#include <type_traits>
27
28// Semantic checks for pointer assignment.
29
30namespace Fortran::semantics {
31
32using namespace parser::literals;
33using evaluate::characteristics::DummyDataObject;
34using evaluate::characteristics::FunctionResult;
35using evaluate::characteristics::Procedure;
36using evaluate::characteristics::TypeAndShape;
37using parser::MessageFixedText;
38using parser::MessageFormattedText;
39
40class PointerAssignmentChecker {
41public:
42 PointerAssignmentChecker(evaluate::FoldingContext &context,
43 parser::CharBlock source, const std::string &description)
Tim Keith1f879002020-03-29 04:00:1644 : context_{context}, source_{source}, description_{description} {}
CarolineConcatto64ab3302020-02-25 15:11:5245 PointerAssignmentChecker(evaluate::FoldingContext &context, const Symbol &lhs)
Tim Keith1f879002020-03-29 04:00:1646 : context_{context}, source_{lhs.name()},
peter klausler562bfe12021-06-15 22:17:1647 description_{"pointer '"s + lhs.name().ToString() + '\''}, lhs_{&lhs} {
CarolineConcatto64ab3302020-02-25 15:11:5248 set_lhsType(TypeAndShape::Characterize(lhs, context));
49 set_isContiguous(lhs.attrs().test(Attr::CONTIGUOUS));
50 set_isVolatile(lhs.attrs().test(Attr::VOLATILE));
peter klausler562bfe12021-06-15 22:17:1651 if (IsProcedure(lhs)) {
52 procedure_ = Procedure::Characterize(lhs, context);
53 }
CarolineConcatto64ab3302020-02-25 15:11:5254 }
55 PointerAssignmentChecker &set_lhsType(std::optional<TypeAndShape> &&);
56 PointerAssignmentChecker &set_isContiguous(bool);
57 PointerAssignmentChecker &set_isVolatile(bool);
58 PointerAssignmentChecker &set_isBoundsRemapping(bool);
peter klausler4171f802020-06-19 00:17:0459 bool Check(const SomeExpr &);
CarolineConcatto64ab3302020-02-25 15:11:5260
61private:
peter klausler4171f802020-06-19 00:17:0462 template <typename T> bool Check(const T &);
63 template <typename T> bool Check(const evaluate::Expr<T> &);
64 template <typename T> bool Check(const evaluate::FunctionRef<T> &);
65 template <typename T> bool Check(const evaluate::Designator<T> &);
66 bool Check(const evaluate::NullPointer &);
67 bool Check(const evaluate::ProcedureDesignator &);
68 bool Check(const evaluate::ProcedureRef &);
CarolineConcatto64ab3302020-02-25 15:11:5269 // Target is a procedure
peter klausler4171f802020-06-19 00:17:0470 bool Check(
CarolineConcatto64ab3302020-02-25 15:11:5271 parser::CharBlock rhsName, bool isCall, const Procedure * = nullptr);
72 bool LhsOkForUnlimitedPoly() const;
Tim Keith1f879002020-03-29 04:00:1673 template <typename... A> parser::Message *Say(A &&...);
CarolineConcatto64ab3302020-02-25 15:11:5274
75 evaluate::FoldingContext &context_;
76 const parser::CharBlock source_;
77 const std::string description_;
78 const Symbol *lhs_{nullptr};
79 std::optional<TypeAndShape> lhsType_;
80 std::optional<Procedure> procedure_;
81 bool isContiguous_{false};
82 bool isVolatile_{false};
83 bool isBoundsRemapping_{false};
84};
85
86PointerAssignmentChecker &PointerAssignmentChecker::set_lhsType(
87 std::optional<TypeAndShape> &&lhsType) {
88 lhsType_ = std::move(lhsType);
89 return *this;
90}
91
92PointerAssignmentChecker &PointerAssignmentChecker::set_isContiguous(
93 bool isContiguous) {
94 isContiguous_ = isContiguous;
95 return *this;
96}
97
98PointerAssignmentChecker &PointerAssignmentChecker::set_isVolatile(
99 bool isVolatile) {
100 isVolatile_ = isVolatile;
101 return *this;
102}
103
104PointerAssignmentChecker &PointerAssignmentChecker::set_isBoundsRemapping(
105 bool isBoundsRemapping) {
106 isBoundsRemapping_ = isBoundsRemapping;
107 return *this;
108}
109
peter klausler4171f802020-06-19 00:17:04110template <typename T> bool PointerAssignmentChecker::Check(const T &) {
CarolineConcatto64ab3302020-02-25 15:11:52111 // Catch-all case for really bad target expression
112 Say("Target associated with %s must be a designator or a call to a"
113 " pointer-valued function"_err_en_US,
114 description_);
peter klausler4171f802020-06-19 00:17:04115 return false;
CarolineConcatto64ab3302020-02-25 15:11:52116}
117
Tim Keith1f879002020-03-29 04:00:16118template <typename T>
peter klausler4171f802020-06-19 00:17:04119bool PointerAssignmentChecker::Check(const evaluate::Expr<T> &x) {
120 return std::visit([&](const auto &x) { return Check(x); }, x.u);
CarolineConcatto64ab3302020-02-25 15:11:52121}
122
peter klausler4171f802020-06-19 00:17:04123bool PointerAssignmentChecker::Check(const SomeExpr &rhs) {
Tim Keith1f879002020-03-29 04:00:16124 if (HasVectorSubscript(rhs)) { // C1025
CarolineConcatto64ab3302020-02-25 15:11:52125 Say("An array section with a vector subscript may not be a pointer target"_err_en_US);
peter klausler4171f802020-06-19 00:17:04126 return false;
Tim Keith1f879002020-03-29 04:00:16127 } else if (ExtractCoarrayRef(rhs)) { // C1026
CarolineConcatto64ab3302020-02-25 15:11:52128 Say("A coindexed object may not be a pointer target"_err_en_US);
peter klausler4171f802020-06-19 00:17:04129 return false;
CarolineConcatto64ab3302020-02-25 15:11:52130 } else {
peter klausler4171f802020-06-19 00:17:04131 return std::visit([&](const auto &x) { return Check(x); }, rhs.u);
CarolineConcatto64ab3302020-02-25 15:11:52132 }
133}
134
peter klausler4171f802020-06-19 00:17:04135bool PointerAssignmentChecker::Check(const evaluate::NullPointer &) {
136 return true; // P => NULL() without MOLD=; always OK
CarolineConcatto64ab3302020-02-25 15:11:52137}
138
Tim Keith1f879002020-03-29 04:00:16139template <typename T>
peter klausler4171f802020-06-19 00:17:04140bool PointerAssignmentChecker::Check(const evaluate::FunctionRef<T> &f) {
CarolineConcatto64ab3302020-02-25 15:11:52141 std::string funcName;
142 const auto *symbol{f.proc().GetSymbol()};
143 if (symbol) {
144 funcName = symbol->name().ToString();
145 } else if (const auto *intrinsic{f.proc().GetSpecificIntrinsic()}) {
146 funcName = intrinsic->name;
147 }
peter klausler641ede92020-12-07 20:08:58148 auto proc{Procedure::Characterize(f.proc(), context_)};
CarolineConcatto64ab3302020-02-25 15:11:52149 if (!proc) {
peter klausler4171f802020-06-19 00:17:04150 return false;
CarolineConcatto64ab3302020-02-25 15:11:52151 }
152 std::optional<MessageFixedText> msg;
Tim Keith1f879002020-03-29 04:00:16153 const auto &funcResult{proc->functionResult}; // C1025
CarolineConcatto64ab3302020-02-25 15:11:52154 if (!funcResult) {
155 msg = "%s is associated with the non-existent result of reference to"
156 " procedure"_err_en_US;
157 } else if (procedure_) {
158 // Shouldn't be here in this function unless lhs is an object pointer.
159 msg = "Procedure %s is associated with the result of a reference to"
160 " function '%s' that does not return a procedure pointer"_err_en_US;
161 } else if (funcResult->IsProcedurePointer()) {
162 msg = "Object %s is associated with the result of a reference to"
163 " function '%s' that is a procedure pointer"_err_en_US;
164 } else if (!funcResult->attrs.test(FunctionResult::Attr::Pointer)) {
165 msg = "%s is associated with the result of a reference to function '%s'"
166 " that is a not a pointer"_err_en_US;
167 } else if (isContiguous_ &&
168 !funcResult->attrs.test(FunctionResult::Attr::Contiguous)) {
169 msg = "CONTIGUOUS %s is associated with the result of reference to"
170 " function '%s' that is not contiguous"_err_en_US;
171 } else if (lhsType_) {
172 const auto *frTypeAndShape{funcResult->GetTypeAndShape()};
173 CHECK(frTypeAndShape);
peter klauslerd6a74ec2020-12-15 18:54:36174 if (!lhsType_->IsCompatibleWith(context_.messages(), *frTypeAndShape,
175 "pointer", "function result", false /*elemental*/,
peter klauslerdfecbca2021-06-03 22:48:16176 evaluate::CheckConformanceFlags::BothDeferredShape)) {
peter klauslerbcb25912021-09-17 15:19:10177 return false; // IsCompatibleWith() emitted message
CarolineConcatto64ab3302020-02-25 15:11:52178 }
179 }
180 if (msg) {
181 auto restorer{common::ScopedSet(lhs_, symbol)};
182 Say(*msg, description_, funcName);
peter klausler4171f802020-06-19 00:17:04183 return false;
CarolineConcatto64ab3302020-02-25 15:11:52184 }
peter klausler4171f802020-06-19 00:17:04185 return true;
CarolineConcatto64ab3302020-02-25 15:11:52186}
187
Tim Keith1f879002020-03-29 04:00:16188template <typename T>
peter klausler4171f802020-06-19 00:17:04189bool PointerAssignmentChecker::Check(const evaluate::Designator<T> &d) {
CarolineConcatto64ab3302020-02-25 15:11:52190 const Symbol *last{d.GetLastSymbol()};
191 const Symbol *base{d.GetBaseObject().symbol()};
192 if (!last || !base) {
193 // P => "character literal"(1:3)
194 context_.messages().Say("Pointer target is not a named entity"_err_en_US);
peter klausler4171f802020-06-19 00:17:04195 return false;
CarolineConcatto64ab3302020-02-25 15:11:52196 }
197 std::optional<std::variant<MessageFixedText, MessageFormattedText>> msg;
198 if (procedure_) {
199 // Shouldn't be here in this function unless lhs is an object pointer.
200 msg = "In assignment to procedure %s, the target is not a procedure or"
201 " procedure pointer"_err_en_US;
Tim Keith1f879002020-03-29 04:00:16202 } else if (!evaluate::GetLastTarget(GetSymbolVector(d))) { // C1025
CarolineConcatto64ab3302020-02-25 15:11:52203 msg = "In assignment to object %s, the target '%s' is not an object with"
204 " POINTER or TARGET attributes"_err_en_US;
205 } else if (auto rhsType{TypeAndShape::Characterize(d, context_)}) {
206 if (!lhsType_) {
207 msg = "%s associated with object '%s' with incompatible type or"
208 " shape"_err_en_US;
209 } else if (rhsType->corank() > 0 &&
Tim Keith1f879002020-03-29 04:00:16210 (isVolatile_ != last->attrs().test(Attr::VOLATILE))) { // C1020
CarolineConcatto64ab3302020-02-25 15:11:52211 // TODO: what if A is VOLATILE in A%B%C? need a better test here
212 if (isVolatile_) {
213 msg = "Pointer may not be VOLATILE when target is a"
214 " non-VOLATILE coarray"_err_en_US;
215 } else {
216 msg = "Pointer must be VOLATILE when target is a"
217 " VOLATILE coarray"_err_en_US;
218 }
219 } else if (rhsType->type().IsUnlimitedPolymorphic()) {
220 if (!LhsOkForUnlimitedPoly()) {
221 msg = "Pointer type must be unlimited polymorphic or non-extensible"
222 " derived type when target is unlimited polymorphic"_err_en_US;
223 }
224 } else {
peter klausler37b2e2b2020-09-30 20:34:23225 if (!lhsType_->type().IsTkCompatibleWith(rhsType->type())) {
CarolineConcatto64ab3302020-02-25 15:11:52226 msg = MessageFormattedText{
227 "Target type %s is not compatible with pointer type %s"_err_en_US,
228 rhsType->type().AsFortran(), lhsType_->type().AsFortran()};
229
230 } else if (!isBoundsRemapping_) {
peter klauslerf862d852020-08-31 18:54:48231 int lhsRank{evaluate::GetRank(lhsType_->shape())};
232 int rhsRank{evaluate::GetRank(rhsType->shape())};
CarolineConcatto64ab3302020-02-25 15:11:52233 if (lhsRank != rhsRank) {
234 msg = MessageFormattedText{
235 "Pointer has rank %d but target has rank %d"_err_en_US, lhsRank,
236 rhsRank};
237 }
238 }
239 }
240 }
241 if (msg) {
242 auto restorer{common::ScopedSet(lhs_, last)};
243 if (auto *m{std::get_if<MessageFixedText>(&*msg)}) {
Caroline Concatto8670e492020-02-28 15:11:03244 std::string buf;
245 llvm::raw_string_ostream ss{buf};
CarolineConcatto64ab3302020-02-25 15:11:52246 d.AsFortran(ss);
247 Say(*m, description_, ss.str());
248 } else {
249 Say(std::get<MessageFormattedText>(*msg));
250 }
peter klausler4171f802020-06-19 00:17:04251 return false;
CarolineConcatto64ab3302020-02-25 15:11:52252 }
peter klausler4171f802020-06-19 00:17:04253 return true;
CarolineConcatto64ab3302020-02-25 15:11:52254}
255
CarolineConcatto64ab3302020-02-25 15:11:52256// Common handling for procedure pointer right-hand sides
peter klausler4171f802020-06-19 00:17:04257bool PointerAssignmentChecker::Check(
CarolineConcatto64ab3302020-02-25 15:11:52258 parser::CharBlock rhsName, bool isCall, const Procedure *rhsProcedure) {
Peter Steinfeldc7574182020-09-25 16:03:17259 if (std::optional<MessageFixedText> msg{
260 evaluate::CheckProcCompatibility(isCall, procedure_, rhsProcedure)}) {
CarolineConcatto64ab3302020-02-25 15:11:52261 Say(std::move(*msg), description_, rhsName);
peter klausler4171f802020-06-19 00:17:04262 return false;
CarolineConcatto64ab3302020-02-25 15:11:52263 }
peter klausler4171f802020-06-19 00:17:04264 return true;
CarolineConcatto64ab3302020-02-25 15:11:52265}
266
peter klausler4171f802020-06-19 00:17:04267bool PointerAssignmentChecker::Check(const evaluate::ProcedureDesignator &d) {
peter klausler641ede92020-12-07 20:08:58268 if (auto chars{Procedure::Characterize(d, context_)}) {
peter klausler4171f802020-06-19 00:17:04269 return Check(d.GetName(), false, &*chars);
CarolineConcatto64ab3302020-02-25 15:11:52270 } else {
peter klausler4171f802020-06-19 00:17:04271 return Check(d.GetName(), false);
CarolineConcatto64ab3302020-02-25 15:11:52272 }
273}
274
peter klausler4171f802020-06-19 00:17:04275bool PointerAssignmentChecker::Check(const evaluate::ProcedureRef &ref) {
CarolineConcatto64ab3302020-02-25 15:11:52276 const Procedure *procedure{nullptr};
peter klausler641ede92020-12-07 20:08:58277 auto chars{Procedure::Characterize(ref, context_)};
CarolineConcatto64ab3302020-02-25 15:11:52278 if (chars) {
279 procedure = &*chars;
280 if (chars->functionResult) {
281 if (const auto *proc{chars->functionResult->IsProcedurePointer()}) {
282 procedure = proc;
283 }
284 }
285 }
peter klausler4171f802020-06-19 00:17:04286 return Check(ref.proc().GetName(), true, procedure);
CarolineConcatto64ab3302020-02-25 15:11:52287}
288
289// The target can be unlimited polymorphic if the pointer is, or if it is
290// a non-extensible derived type.
291bool PointerAssignmentChecker::LhsOkForUnlimitedPoly() const {
292 const auto &type{lhsType_->type()};
293 if (type.category() != TypeCategory::Derived || type.IsAssumedType()) {
294 return false;
295 } else if (type.IsUnlimitedPolymorphic()) {
296 return true;
297 } else {
298 return !IsExtensibleType(&type.GetDerivedTypeSpec());
299 }
300}
301
Tim Keith1f879002020-03-29 04:00:16302template <typename... A>
peter klausler0e9e06a2020-08-06 23:56:14303parser::Message *PointerAssignmentChecker::Say(A &&...x) {
CarolineConcatto64ab3302020-02-25 15:11:52304 auto *msg{context_.messages().Say(std::forward<A>(x)...)};
peter klausler641ede92020-12-07 20:08:58305 if (msg) {
306 if (lhs_) {
307 return evaluate::AttachDeclaration(msg, *lhs_);
308 }
309 if (!source_.empty()) {
310 msg->Attach(source_, "Declaration of %s"_en_US, description_);
311 }
CarolineConcatto64ab3302020-02-25 15:11:52312 }
313 return msg;
314}
315
316// Verify that any bounds on the LHS of a pointer assignment are valid.
317// Return true if it is a bound-remapping so we can perform further checks.
318static bool CheckPointerBounds(
319 evaluate::FoldingContext &context, const evaluate::Assignment &assignment) {
320 auto &messages{context.messages()};
321 const SomeExpr &lhs{assignment.lhs};
322 const SomeExpr &rhs{assignment.rhs};
323 bool isBoundsRemapping{false};
324 std::size_t numBounds{std::visit(
325 common::visitors{
326 [&](const evaluate::Assignment::BoundsSpec &bounds) {
327 return bounds.size();
328 },
329 [&](const evaluate::Assignment::BoundsRemapping &bounds) {
330 isBoundsRemapping = true;
331 evaluate::ExtentExpr lhsSizeExpr{1};
332 for (const auto &bound : bounds) {
333 lhsSizeExpr = std::move(lhsSizeExpr) *
334 (common::Clone(bound.second) - common::Clone(bound.first) +
335 evaluate::ExtentExpr{1});
336 }
337 if (std::optional<std::int64_t> lhsSize{evaluate::ToInt64(
338 evaluate::Fold(context, std::move(lhsSizeExpr)))}) {
339 if (auto shape{evaluate::GetShape(context, rhs)}) {
340 if (std::optional<std::int64_t> rhsSize{
341 evaluate::ToInt64(evaluate::Fold(
342 context, evaluate::GetSize(std::move(*shape))))}) {
343 if (*lhsSize > *rhsSize) {
344 messages.Say(
345 "Pointer bounds require %d elements but target has"
346 " only %d"_err_en_US,
Tim Keith1f879002020-03-29 04:00:16347 *lhsSize, *rhsSize); // 10.2.2.3(9)
CarolineConcatto64ab3302020-02-25 15:11:52348 }
349 }
350 }
351 }
352 return bounds.size();
353 },
354 [](const auto &) -> std::size_t {
355 DIE("not valid for pointer assignment");
356 },
357 },
358 assignment.u)};
359 if (numBounds > 0) {
360 if (lhs.Rank() != static_cast<int>(numBounds)) {
361 messages.Say("Pointer '%s' has rank %d but the number of bounds specified"
362 " is %d"_err_en_US,
Tim Keith1f879002020-03-29 04:00:16363 lhs.AsFortran(), lhs.Rank(), numBounds); // C1018
CarolineConcatto64ab3302020-02-25 15:11:52364 }
365 }
366 if (isBoundsRemapping && rhs.Rank() != 1 &&
peter klausler641ede92020-12-07 20:08:58367 !evaluate::IsSimplyContiguous(rhs, context)) {
CarolineConcatto64ab3302020-02-25 15:11:52368 messages.Say("Pointer bounds remapping target must have rank 1 or be"
Tim Keith1f879002020-03-29 04:00:16369 " simply contiguous"_err_en_US); // 10.2.2.3(9)
CarolineConcatto64ab3302020-02-25 15:11:52370 }
371 return isBoundsRemapping;
372}
373
peter klausler4171f802020-06-19 00:17:04374bool CheckPointerAssignment(
CarolineConcatto64ab3302020-02-25 15:11:52375 evaluate::FoldingContext &context, const evaluate::Assignment &assignment) {
peter klausler4171f802020-06-19 00:17:04376 return CheckPointerAssignment(context, assignment.lhs, assignment.rhs,
377 CheckPointerBounds(context, assignment));
378}
379
380bool CheckPointerAssignment(evaluate::FoldingContext &context,
381 const SomeExpr &lhs, const SomeExpr &rhs, bool isBoundsRemapping) {
CarolineConcatto64ab3302020-02-25 15:11:52382 const Symbol *pointer{GetLastSymbol(lhs)};
383 if (!pointer) {
peter klausler4171f802020-06-19 00:17:04384 return false; // error was reported
CarolineConcatto64ab3302020-02-25 15:11:52385 }
386 if (!IsPointer(*pointer)) {
387 evaluate::SayWithDeclaration(context.messages(), *pointer,
388 "'%s' is not a pointer"_err_en_US, pointer->name());
peter klausler4171f802020-06-19 00:17:04389 return false;
CarolineConcatto64ab3302020-02-25 15:11:52390 }
391 if (pointer->has<ProcEntityDetails>() && evaluate::ExtractCoarrayRef(lhs)) {
Tim Keith1f879002020-03-29 04:00:16392 context.messages().Say( // C1027
CarolineConcatto64ab3302020-02-25 15:11:52393 "Procedure pointer may not be a coindexed object"_err_en_US);
peter klausler4171f802020-06-19 00:17:04394 return false;
CarolineConcatto64ab3302020-02-25 15:11:52395 }
peter klausler4171f802020-06-19 00:17:04396 return PointerAssignmentChecker{context, *pointer}
CarolineConcatto64ab3302020-02-25 15:11:52397 .set_isBoundsRemapping(isBoundsRemapping)
398 .Check(rhs);
399}
400
peter klausler4171f802020-06-19 00:17:04401bool CheckPointerAssignment(
CarolineConcatto64ab3302020-02-25 15:11:52402 evaluate::FoldingContext &context, const Symbol &lhs, const SomeExpr &rhs) {
403 CHECK(IsPointer(lhs));
peter klausler4171f802020-06-19 00:17:04404 return PointerAssignmentChecker{context, lhs}.Check(rhs);
CarolineConcatto64ab3302020-02-25 15:11:52405}
406
peter klausler4171f802020-06-19 00:17:04407bool CheckPointerAssignment(evaluate::FoldingContext &context,
CarolineConcatto64ab3302020-02-25 15:11:52408 parser::CharBlock source, const std::string &description,
409 const DummyDataObject &lhs, const SomeExpr &rhs) {
peter klausler4171f802020-06-19 00:17:04410 return PointerAssignmentChecker{context, source, description}
CarolineConcatto64ab3302020-02-25 15:11:52411 .set_lhsType(common::Clone(lhs.type))
412 .set_isContiguous(lhs.attrs.test(DummyDataObject::Attr::Contiguous))
413 .set_isVolatile(lhs.attrs.test(DummyDataObject::Attr::Volatile))
414 .Check(rhs);
415}
416
peter klausler4171f802020-06-19 00:17:04417bool CheckInitialTarget(evaluate::FoldingContext &context,
418 const SomeExpr &pointer, const SomeExpr &init) {
419 return evaluate::IsInitialDataTarget(init, &context.messages()) &&
420 CheckPointerAssignment(context, pointer, init);
421}
422
Tim Keith1f879002020-03-29 04:00:16423} // namespace Fortran::semantics