[flang-commits] [flang] [flang] Implement conditional expressions parser/semantics (F2023) (PR #186489)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sun Mar 29 18:37:58 PDT 2026
================
@@ -1193,6 +1210,12 @@ class IsContiguousHelper
Result operator()(const NullPointer &) const { return true; }
+ template <typename T> Result operator()(const ConditionalExpr<T> &x) {
+ // Contiguity is not a meaningful characteristic of a conditional
+ // expression
+ return true;
----------------
eugeneepshteyn wrote:
What about conditional expression that picks between two non-contiguous array sections? If don't want to give an opinion on contiguity, this should return `std::nullopt`.
https://github.com/llvm/llvm-project/pull/186489
More information about the flang-commits
mailing list