<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54094>54094</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Reduction variable is incorrectly firstprivate in split OpenMP reduction.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jhuber6
</td>
</tr>
</table>
<pre>
Currently Clang will emit a spurious error on the argument if it is contained in another line. This behavior is shown in https://godbolt.org/z/joE6G67Ts. This should be a valid construct and the variable should be shared.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUNuOnTAM_Bp4iYo4XA8PeWi3l6eqVbU_YIgBH4UEOQmr7dfXoG5bVUoUO54Zjz1686qfEjO6aF_VkwW3qBeyVuFGUYEKe2LyKShk9qy8U3FFBbykTSiKZiUwCmryLgI5NIqcAucFxcrKR6GeV6mPuMJBoiBxWP2LO3FrjHvI6vdZ9VnO4s3obSw8L5L9lPvwn7ovXf8cfosIMVkjWmLsAEvmbBsip0msOnNZO4AJRov_gMMKjKbIja7NUA-QR4oW9Q80QiQZ6Q9HepCbvKxjOtcxE4e4Mx0Q8fQbdivTftvRff2u-I1e5Imt_m8Wimsai8lvklh7vD3vdvYPEZeUQkgYJGibcmjyVQ9Nd5uNwRLu9W3sm3mY57arb9j2A8xTn1sY0QadtR-yqvLiYtslyNqPOemqrM7TlVU5tH3RGKi6-71t5gaqBqesKXEDssVp4txwzvryM6YlSNFSiOFvEUKgxSFevUQfUlw964fMhNzll3V9-f4F1VbEsQ">