<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61570>61570</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] Clang crashes in the presence of address spaces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jdoerfert
</td>
</tr>
</table>
<pre>
This, compiled for a device, should not crash.
```
static int A[128] __attribute__((address_space(3)));
void as_test() {
#pragma omp target
for (int i = 0; i < 1; ++i)
A[i] = i;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk-rpD4Q_DTtpXlD7Pj34GGcYW4_fnvYu0TTah5qJIkD--2X-FzestAkHTqVqqKivDfTxtxA3kL-TNQRZuuaT23ZjexC0lv9q_k5Gw_0wMGuu1lY42gdKtT8NgPHgZ_tsWjcbMDBKT_fQDxB3K-1EFedRx9UMAOaLeAd8jalCvIndp0KwZn-CNx1QBVQpbR27H3ndxVZKglUXyXbvwne1mhUvgvswwmtEco_N0juTk2rQrvuGJSbOHxN8HQBVEUlBkE-UYBsz_aBaWyBWqDWRMYLgqdmExVHgPlWUj7_cZvoRupa1irhJi3KWhYkCpHMjUgzznM5DDzqss7KtCrrUWW6qsaCMkoT05AgKSSlIqUyEzeqdZoVpSyKvkh7TZAJXpVZbsvyXm_WTYnx_uCmSPNSJIvqefFnokR2523dgSim65oI-OiPyUMmFuOD_34imLCc_-D_nbf_fkSLj0Vt01ei7NFsGGbG3bHnbWC0I14R4RmRTw63NHMIuwd5B3oBvSYT5qO_DXYFekWqa_vYnf3kIQC9Tuke6HWq_x0AAP__11jA7w">