[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:38 PDT 2026
================
@@ -1185,6 +1209,20 @@ struct HasVectorSubscriptHelper
bool operator()(const ProcedureRef &) const {
return false; // don't descend into function call arguments
}
+ template <typename T> bool operator()(const ConditionalExpr<T> &x) {
+ // Check if any condition or value has a vector subscript
----------------
klausler wrote:
Conditions are scalars. How would they have vector subscripts?
Values are not variable designators. If there were a vector subscript, it would not matter, any more than `(A(IVECT))` would with parentheses.
https://github.com/llvm/llvm-project/pull/186489
More information about the flang-commits
mailing list