diff --git a/flang/lib/Lower/ConvertExpr.cpp b/flang/lib/Lower/ConvertExpr.cpp index c7c35b5df988c..78fa89cbd211f 100644 --- a/flang/lib/Lower/ConvertExpr.cpp +++ b/flang/lib/Lower/ConvertExpr.cpp @@ -4305,11 +4305,13 @@ class ArrayExprLowering { fir::ArrayLoadOp createAndLoadSomeArrayTemp(mlir::Type type, llvm::ArrayRef shape) { + mlir::Location loc = getLoc(); + if (fir::isPolymorphicType(type)) + TODO(loc, "polymorphic array temporary"); if (ccLoadDest) return (*ccLoadDest)(shape); auto seqTy = type.dyn_cast(); assert(seqTy && "must be an array"); - mlir::Location loc = getLoc(); // TODO: Need to thread the LEN parameters here. For character, they may // differ from the operands length (e.g concatenation). So the array loads // type parameters are not enough.