[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
================
@@ -229,6 +246,20 @@ struct IsActuallyConstantHelper {
template <typename T> bool operator()(const Parentheses<T> &x) {
return (*this)(x.left());
}
+ template <typename T> bool operator()(const ConditionalExpr<T> &x) {
+ // A conditional expression is actually constant if all its parts are
----------------
klausler wrote:
This is just wrong. If there's a true condition preceded only by false ones, the later conditions and values do not matter.
https://github.com/llvm/llvm-project/pull/186489
More information about the flang-commits
mailing list