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

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Thu Apr 24 07:31:27 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
----------------
eugeneepshteyn wrote:

Isn't this a warning in the compiler, and not an error? Or is the distinction doesn't matter to test_errors.py?

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


More information about the flang-commits mailing list