[flang-commits] [flang] [flang][OpenMP] Add diagnostic for ATOMIC WRITE with pointer to non-intrinsic type (PR #162364)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Oct 7 13:38:02 PDT 2025
================
@@ -829,6 +828,32 @@ void OmpStructureChecker::CheckAtomicWriteAssignment(
if (!IsVarOrFunctionRef(atom)) {
ErrorShouldBeVariable(atom, rsrc);
} else {
+ // For intrinsic assignment (x = expr), check if the variable is a pointer
+ // to a non-intrinsic type, which is not allowed in ATOMIC WRITE
----------------
kparzysz wrote:
This isn't specific to WRITE. It should be checked in `CheckAtomicType`.
https://github.com/llvm/llvm-project/pull/162364
More information about the flang-commits
mailing list