[flang-commits] [flang] [flang] Fold character array constructor with unknown length (PR #123983)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Jan 22 11:11:29 PST 2025


================
@@ -1345,6 +1353,8 @@ template <typename T> class ArrayConstructorFolder {
 
   FoldingContext &context_;
   std::vector<Scalar<T>> elements_;
+  std::optional<ConstantSubscript> charLength_;
----------------
eugeneepshteyn wrote:

What would be the case, when `knownCharLength_` is false, but `charLengh_` has value?

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


More information about the flang-commits mailing list