<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/68384>68384</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [flang][OpenMP][omp2012] Not yet implemented: array references in atomic update
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang:ir
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            NimishMishra
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          NimishMishra
      </td>
    </tr>
</table>

<pre>
    Currently, lowering of atomic update statements in LLVM flang do not support array references. 

Reproducer:

```
integer, dimension(5) :: x
!$omp atomic
  x(4) = x(4) + 5
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcGOmzAQhp9muIw2MgOmcOCQbJTTZlv10LsDA7gytmWbdvP2FQSp2ZUQ9nj8j2f-T8WoR8vcgjwB0buedZyuOk5BARHIc6aWNLnQPmeym-vv7esSAttk7kCvaNxfDtqO6AZUyc26w8X3KjHGpBLPbFNEbfHt7dcVB6PsiL1D6xLGxXsXEqoQ1B0DDxzYdhwPCOIM4vj4_2QfXL90HKA4PiegEvu3hdomHjmsLfV6Zhu1s0C1BGpwVRZH_NiFlAOVbvZ7v49TxA-gunxcPz8FdEL55cWsb4u-KRqVcZtXTSWrJq_zbGo7WfcdCcF5XqrqNjRqUGogIYtaFaX8lumWBBW5EJWQeSHyQ1dTV1HZi1oNdTMoKAXPSpuDMX_mgwtjpmNcuK3qoi4zo25s4o5sMxOKow47sNCuopfbMkYohdExxf9lkk5mg_2QyTPI03fP9vrjsXezJ5GvdfDdJbxzQj17swHkfrXvK6eV6ifi2RJMO6Xk42o4XYAuo07Tcjt0bga6rL3sy4sP7jd3CeiyzReBLtuI_wIAAP__beTLpQ">