[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)

via flang-commits flang-commits at lists.llvm.org
Tue Dec 5 07:05:38 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
----------------
shraiysh wrote:

According to the restriction, this error should be reported right? It says argument must be a dummy argument. Am I missing something?

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


More information about the flang-commits mailing list