diff --git a/flang/lib/Lower/Allocatable.cpp b/flang/lib/Lower/Allocatable.cpp index 2587544637899..a4e3850d8f2d1 100644 --- a/flang/lib/Lower/Allocatable.cpp +++ b/flang/lib/Lower/Allocatable.cpp @@ -438,6 +438,8 @@ class AllocateStmtHelper { // Generate a sequence of runtime calls. errorManager.genStatCheck(builder, loc); genAllocateObjectInit(box); + if (alloc.getShapeSpecs().size() > 0 && sourceExv.rank() == 0) + TODO(loc, "allocate array object with scalar SOURCE specifier"); if (alloc.hasCoarraySpec()) TODO(loc, "coarray allocation"); if (alloc.type.IsPolymorphic())