[flang-commits] [flang] Skip POINTER components in implicit mapper generation (PR #177848)

Deepak Eachempati via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 08:28:21 PDT 2026


dreachem wrote:

Prior to 6.0, the spec said that the association status for the pointer component is treated as if it's undefined when using the "predefined" mapper. That means the program can't rely on the association status being T or F in the target region. In 6.0, the "attach-ineligible" term was added for the pointer. We don't explicitly say that the association status is treated as if its undefined, though we have a restriction that suggests this is the case: "The association status of a list item that is a pointer must not be undefined unless it is a structure component and it results from a predefined default mapper."

So, I think retaining the association status of T is fine (and it could be argued that since 6.0 it is required) when using the predefined mapper, even if pointer attachment doesn't occur and the pointer target isn't available on the device.


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


More information about the flang-commits mailing list