Issue 138748
Summary [flang][openmp] Incorrect diagnostic on Openmp Atomic update statement
Labels flang:openmp
Assignees
Reporter DanielCChen
    Consider the following test case
```
    integer (kind = 4) :: a
    real :: c
 a = 1
    c = 3
    d = 4
!$omp atomic
    a = a + c + d
end
```

Flang now issues an error
```
./t.f:7:5: error: Atomic update statement should be of form `a = a operator expr` OR `a = expr operator a`
      a = a + c + d
      ^
```

The code is conforming to the standard.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to