[flang-commits] [flang] [flang][acc] Ensure fir.class is handled in type categorization (PR #146174)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Fri Jun 27 16:14:46 PDT 2025


================
@@ -0,0 +1,18 @@
+module mm
+  type, public :: polyty
+    real :: field
+  end type
+contains
+  subroutine init(this)
+    class(polyty), intent(inout) :: this
+    !$acc enter data copyin(this, this%field)
----------------
clementval wrote:

Have you check if it works as well with an unlimited polymorphic dummy? 

```
class(*), intent(inout) :: this
!$acc enter data copyin(this)
```

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


More information about the flang-commits mailing list