[flang-commits] [flang] [flang][OpenMP][Semantics] Modify a semantic check which was tightly checking list items in IS_DEVICE_PTR to be only dummy arguments. (PR #74370)
Raghu Maddhipatla via flang-commits
flang-commits at lists.llvm.org
Wed Dec 6 09:00:31 PST 2023
================
@@ -39,7 +39,6 @@ subroutine bar(b1, b2, b3)
type(c_ptr), pointer :: b2
type(c_ptr), value :: b3
- !ERROR: Variable 'c' in IS_DEVICE_PTR clause must be a dummy argument
----------------
raghavendhra wrote:
I asked @mjklemm who is CEO of OpenMP ARB
Here are his comments:
@mjklemm : 5.0 is broken. 5.1/5.2 has fixed it. OpenMP 6.0 will have a different behavior. I wonder if it would make sense to directly implement the 5.2 and 6.0 behavior.
This aligns with @shraiysh 's comment. Even I could not find anything related to dummy argument list item of IS_DEVICE_PTR clause. So, I will remove the dummy argument check.
https://github.com/llvm/llvm-project/pull/74370
More information about the flang-commits
mailing list