[flang-commits] [flang] [flang] Do not stop on mismatched DATA substring length (PR #69336)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Oct 17 08:19:09 PDT 2023


================
@@ -457,10 +457,11 @@ bool DataInitializationCompiler<DSV>::InitElement(
             folded.AsFortran(), DescribeElement());
       } else if (status == evaluate::InitialImage::OutOfRange) {
         OutOfRangeError();
-      } else if (status == evaluate::InitialImage::SizeMismatch) {
+      } else if (status == evaluate::InitialImage::LengthMismatch) {
----------------
klausler wrote:

Don't you still need to handle the case of a `SizeMismatch` here?

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


More information about the flang-commits mailing list