[flang-commits] [flang] [flang][OpenMP] Don't emit implicit default mapper for flat allocatable derived types (PR #209645)

via flang-commits flang-commits at lists.llvm.org
Tue Jul 14 18:51:55 PDT 2026


================
@@ -0,0 +1,28 @@
+! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
+
+! A flat derived type -- only trivially-mappable components, no allocatable /
----------------
agozillon wrote:

Test looks good to me, similar vein to the other review comments, we can simplify this by  cutting it down to lines 3-4, and I think remove the nested-record members from our emission requirements, as it's not fundamental to the emission of the default mapper although, they do need to be emitted if we trigger on the actual case of having an implicit allocatable member. I don't believe the pointer case technically requires an emission either!

https://github.com/llvm/llvm-project/pull/209645


More information about the flang-commits mailing list