<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylksFunDAQhp8GLqMiY5awe-CQ7ipVD1V6qFTlaJthcTVrU49Jsn36DiRplV4rYcMwnp_558PG4dp_mxDw2VxmQnBxkM0EsAhjXMIAMUChToW6fd3bj1POMxfNbaHv5DrHwUbKVUxniX7J-h4ffj4kE4aiPRV6vyQq9OGdxrbfGU8MTz5PUGidcMSEwSHkCBSdIbA-DD6cJdsZWTCgI5NwAB9ATlLkNetiyPicReJF9j5PmOTtZfaEiYEXN4Fh-HQ8Qq0KfYTPUkBwfD0B9aHSgNlJK0RvhWuZQ-ZxIbqCeIG0BEmmhC7TtSqHvhkOzcGUZslTTD3FKPNjLsVu_8-ExOJiK1GWgOjx7fZhTvGHyEnomRdkeWgb1ely6rubxrT70XVmtFZZbdHVzY2y3W6vGmvrkoxF4l5wiPOAT7BJrFNoT-X_d-B7rbRWterqg1atqpRW-9GYndLS1d6pYqfwIgSrVWeFX8oMVkm7nFmS5Dnz36Rh9ueAuDUsHWafCXvhKQQfBZOPgWGZV_jrsL3gXTb4dVPJx1_YhJj_8MmTZ7ifMXz5-vLTcvDzjLncjPSbi9-Ipu8v>53072</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang versions up to and including 13.0.0 will not compile this OpenMP code snippet
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
loopless
</td>
</tr>
</table>
<pre>
The example code can be found on
[https://godbolt.org/z/WoYqYrand](url)
Fails with "reference to local binding 'a' declared in enclosing context"
Other compilers such as GCC 10, Intel Compiler 19.2 etc will compile successfully and run correctly.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUsFunDAQ_Rq4jIq8Jixw4JDuKlUPVXqoVOVo7AFceW3qsZNsv74Dm7RqJTwwjN-bN88eg7kO3xYEfFWX1SHoYDgoDyPCFLI3EDwU4lyI-7fYfFxSWqmo7wv5wM8czBhcqkKcOfvF63t4-vkUlTdFcy5kl6MrZP8Pxx4flHUELzYtUEgZccKIXiOkAC5o5WC03lg_c7VVvMCgdiqiAeuBd7pAW1UHn_A1McWN9jEtGPnvZbUOIwFlvYAi-HQ6wUEU8gSfGeDg9LYDDn0lAZNmKc69AzeYRqIpO3cFngVi9lyMEXVy16o0Q236uldlssnhwMpYyzM3tMET5HUbY4NZFpr3MQ51JSpx6-JD-tMpLZbgcUX_5evNfvJ2XTGVbNzwn9dsVh4rRnLi3PP768Maww8Wxqklykj80dSileUy1K1qpeqxE9r0x2M_oWh0p_uuHgUe9Vg6NaKjgQ-WPfT4AjvF5mdzLu0ghZTiINpDL0XDA0jRTUrdCdlNTCOKO4EXPslq07FdgjIOu6Qxz8RFZynR36IisrNH3Nsxv8ppCYwIgW8fUbn3HnbtvwF-SNm1">