From: Valentin Clement Date: Tue, 21 Feb 2023 12:23:44 +0000 (+0100) Subject: [flang] Add TODO when trying to do a polymorphic temp in getTempExtAddr X-Git-Tag: upstream/17.0.6~16909 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42f957f55d3bff4eeb8d05c247fce61323679175;p=platform%2Fupstream%2Fllvm.git [flang] Add TODO when trying to do a polymorphic temp in getTempExtAddr Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D144459 --- 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(