[Openmp-commits] [flang] [openmp] [mlir] [Flang][OpenMP] Initial mapping of Fortran pointers and allocatables for target devices (PR #71766)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 10 10:29:12 PST 2023

@@ -54,6 +54,9 @@ getOmpObjectSymbol(const Fortran::parser::OmpObject &ompObject) {
                         designator)) {
               sym = GetFirstName(arrayEle->base).symbol;
+            } else if (auto *structComp = Fortran::parser::Unwrap<
+                           Fortran::parser::StructureComponent>(designator)) {
+              sym = structComp->component.symbol;
agozillon wrote:

Can do! It was originally to emit an error for trying to offload allocatables in derived types as it's unsupported currently, but I didn't add it to the PR as it seems unnecessary, so I can drop this change and add it if it's ever required.


More information about the Openmp-commits mailing list