[flang-commits] [flang] [flang] Implement conditional expressions parser/semantics (F2023) (PR #186489)
Caroline Newcombe via flang-commits
flang-commits at lists.llvm.org
Tue Mar 31 12:52:58 PDT 2026
================
@@ -587,6 +587,27 @@ llvm::raw_ostream &ArrayConstructor<SomeDerived>::AsFortran(
return o << ']';
}
+template <typename T>
+llvm::raw_ostream &ConditionalExpr<T>::AsFortran(llvm::raw_ostream &o) const {
+ o << '(';
+ const ConditionalExpr<T> *node{this};
+ while (true) {
----------------
cenewcombe wrote:
I have added a comment for clarification.
https://github.com/llvm/llvm-project/pull/186489
More information about the flang-commits
mailing list