[flang-commits] [flang] [flang][cuda] Implicitly attribute allocatables/pointers under -gpu=unified (PR #209292)
Vijay Kandiah via flang-commits
flang-commits at lists.llvm.org
Mon Jul 13 17:55:20 PDT 2026
VijayKandiah wrote:
> Since the PR description mentions derived-type components, could you also add a test covering an allocatable or pointer component that implicitly receives the Unified attribute? Thanks!
I made a change in my latest commit for implicit attribution to work for allocatable/pointer components too. They live in the derived type's scope, which `FinishSpecificationPart` didn't visit, so they weren't being attributed. Added a test covering both -gpu=unified (→ Unified) and -gpu=managed (→ Managed) on both an allocatable and a pointer component.
https://github.com/llvm/llvm-project/pull/209292
More information about the flang-commits
mailing list