[flang-commits] [flang] [flang] Add parser support for Fortran 2023 conditional arguments (F2023 R1526-R1528) (PR #191303)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Apr 13 10:56:13 PDT 2026


================
@@ -4748,6 +4748,10 @@ void ArgumentAnalyzer::Analyze(
               actual->set_isPercentVal();
             }
           },
+          [&](const parser::ConditionalArg &) {
+            context_.Say(
+                "TODO: conditional arguments are not yet supported"_err_en_US);
----------------
eugeneepshteyn wrote:

"TODO" is typically used for developer-facing messages. Since this error is intended to convey information to the users, may be something like this would be better: "Fortran 2023 conditional arguments are not yet supported".

https://github.com/llvm/llvm-project/pull/191303


More information about the flang-commits mailing list