[flang-commits] [flang] [flang] Add semantics support for Fortran 2023 conditional arguments (F2023 R1526-R1528) (PR #195345)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 4 03:24:32 PDT 2026
================
@@ -266,6 +266,15 @@ class ExpressionAnalyzer {
common::Restorer<bool> AllowWholeAssumedSizeArray(bool yes = true) {
return common::ScopedSet(isWholeAssumedSizeArrayOk_, yes);
}
+ // Allows a TYPE(*) assumed-type dummy to appear as an expression
+ // (F2023 15.5.2.3-2: If the chosen consequent is a consequent-arg, its expr
+ // or variable is the actual argument for the corres-
----------------
jeanPerier wrote:
The quote is actually a bit weird to read here. This is a utility API, the standard reference belongs to the code using it to explain why it it using it. Comments here should only explains what this API is doing.
https://github.com/llvm/llvm-project/pull/195345
More information about the flang-commits
mailing list