[flang-commits] [flang] [flang][frontend] warn when a volatile target is pointer associated with an non-volatile pointer (PR #136778)

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Thu Apr 24 09:15:16 PDT 2025


================
@@ -80,6 +83,7 @@ subroutine s5
     real, pointer, volatile :: q
     p => x
     !ERROR: Pointer must be VOLATILE when target is a VOLATILE coarray
+    !ERROR: VOLATILE target associated with non-VOLATILE pointer
----------------
akuhlens wrote:

The latter!

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


More information about the flang-commits mailing list