[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


================
@@ -2791,7 +2791,7 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
   for (std::size_t j{0}; j < dummies; ++j) {
     const IntrinsicDummyArgument &d{dummy[std::min(j, dummyArgPatterns - 1)]};
     if (const auto &arg{rearranged[j]}) {
-      if (const Expr<SomeType> *expr{arg->UnwrapExpr()}) {
----------------
jeanPerier wrote:

Please keep `Expr<SomeType>` here, it is a simple type name and spelling it makes things easier for the reader.

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


More information about the flang-commits mailing list