[flang-commits] [flang] [flang] Implement conditional expressions parser/semantics (F2023) (PR #186489)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Mar 16 12:19:40 PDT 2026


================
@@ -1193,6 +1267,31 @@ class IsContiguousHelper
 
   Result operator()(const NullPointer &) const { return true; }
 
+  template <typename T> Result operator()(const ConditionalExpr<T> &x) {
----------------
klausler wrote:

Conditional expressions are not variable designators; their results are not variables, and contiguity is not a meaningful characteristic of their results any more that it is for something like an array constructor.

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


More information about the flang-commits mailing list