Skip to content

Commit 42f957f

Browse files
committed
[flang] Add TODO when trying to do a polymorphic temp in getTempExtAddr
Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D144459
1 parent d0e95fe commit 42f957f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Lower/ConvertExpr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,8 @@ class ScalarExprLowering {
20212021
},
20222022
[&](const fir::BoxValue &x) -> ExtValue {
20232023
// Derived type scalar that may be polymorphic.
2024+
if (fir::isPolymorphicType(fir::getBase(x).getType()))
2025+
TODO(loc, "polymorphic array temporary");
20242026
assert(!x.hasRank() && x.isDerived());
20252027
if (x.isDerivedWithLenParameters())
20262028
fir::emitFatalError(

0 commit comments

Comments
 (0)