From 42f957f55d3bff4eeb8d05c247fce61323679175 Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Tue, 21 Feb 2023 13:23:44 +0100 Subject: [PATCH] [flang] Add TODO when trying to do a polymorphic temp in getTempExtAddr Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D144459 --- flang/lib/Lower/ConvertExpr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flang/lib/Lower/ConvertExpr.cpp b/flang/lib/Lower/ConvertExpr.cpp index 78fa89c..1407b5e 100644 --- a/flang/lib/Lower/ConvertExpr.cpp +++ b/flang/lib/Lower/ConvertExpr.cpp @@ -2021,6 +2021,8 @@ public: }, [&](const fir::BoxValue &x) -> ExtValue { // Derived type scalar that may be polymorphic. + if (fir::isPolymorphicType(fir::getBase(x).getType())) + TODO(loc, "polymorphic array temporary"); assert(!x.hasRank() && x.isDerived()); if (x.isDerivedWithLenParameters()) fir::emitFatalError( -- 2.7.4