<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylUk1v3CAQ_TX4gmwZMF5z8GHTTaQeqlRq1WuEMWuTxQYBzm776wtep2nVNmpUawTDfL554870X9t3ZrJKSwfIHpQHUO5BXW6yPoXm8wDwTRSY50_SeWXmn1xwM0GEClRsSZ-5G2SIJeGlqR_qKufWapn33J3VjMui_hE4Osl7OJle6hRujVeXq-v97APXWvYHlcBBgO-MDfHURnCdbtXJixRJ009TjlDUOjX_cYrruc0KtZrlP807wNyHHpCDuFrQDv5uyY_GynmyML_HKWX9cgED9ycn-0WEszPzUIjL5RVst86Zvy7h_sPHRMEaE4kgiKTn3nvpQuL-yJVenIQ8wNNkH1JnlTpaC3CDMYvUsOKV5p_M4kRKD1yMsn8OpTfdMvjVV3xTFtBDLDeGYH0Ciu-iDCqMS1cIM217eF6HdeZRirSvY6Tcx3vHSNU0LG3pl6qYXdtlfUt6RhjP-BJG49ovSgTjbtXjaTRLyBan2zc3V94va3dKqpJkY8sw6wQVXFDaVfhYk7LaEbEjSGDMa0QzzTupfRuHBxjP8gzXElGP42f_j0C1uMS4RJgiSihqih1DhKEmqrQiHS1BVcop7rNIdQrjhsy1a8nEWnRq5YN_cXLv1TBLuQKOCIMKWrZv-zWyFWO7AvwO5xs2qQ>53403</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Assertion failure at kmp_tasking.cpp(2291)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
VictorEijkhout
</td>
</tr>
</table>
<pre>
Compiler:
```
clang++ --version
clang version 11.1.0
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-11/bin
```
Compile line:
```
clang++ -g -std=c++17 -std=c++17 -fopenmp -O2 -g -c taskreductwrong.cxx
```
Error:
```
OMP: Error #13: Assertion failure at kmp_tasking.cpp(2291).
```
Source attached.
[bugsource.zip](https://github.com/llvm/llvm-project/files/7934889/bugsource.zip)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUUtv3CAQ_jX2Bdky4OfBh6SbSD1UqdSq1wjw2CaLDQKc3fbXF7ybPtQ2atAIhnl-8w3Xw9f-nV6MVGATepMUh6S4SeriKvtXKLZOCbkNgrLsGayTev3Fha4mhHGO82vSZ2Yn8KEkOrf1Y11mzBgF2cDsSa6kyOsfgbMFNqBFD6BiuNFOni-u96vzTCkYDjKCQwm518aHW2nBVHwlhzOIqKnnJcM4aFyuf53icl9nRUqu8F_zTihzfkjoQVwsuEF_WrJRG1gXg7IHElP2kwnkmTtaGDbhT1avUy7O51ew3Vmr_7mEhw8fIwV7TCCCYhq_N86B9ZH7kUm1WUDMo-NiHmNnGTsak5CWkC5Q0-WvNP-kNytiumdihuEltLrl2-R2X_5NmqQ6hHKz98ZFoOQ-yCT9vPFc6OW6h5d1GKufQMR9jYFyF96mo2XbdnFLv1Ul3aVdOvR06GjHUi-9gv5t46WbVf2bsUnnth1cRcuCpnMvKoBQceRNyce6asaOD0BbDAWvm7qoUsU4KNcHbhJCVjihvUTQAzup7ElBSIFJhSta4TZvOkw73Aa1KimviqQsYAnT5BFHru2U2n6HFCkJTiWddz-dzDk5rQB7u1CfbX7Wtv8ihdf2Tj4dZ735dEfQ7xN8B6xmIeY">