<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/94997>94997</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Flang][OpenMP] Passing uniform in declare SIMD returns error "Internal: no symbol found"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aadler
</td>
</tr>
</table>
<pre>
I apologize in advance if this is not the proper venue for this question, and, if so, would appreciate being directed. I develop and maintain a few packages for [R](https://cran.r-project.org/). I don't use clang when I develop but I do test compilation on c/flang by using [rhub](https://github.com/r-hub/rhub). To the best of my knowledge, [clang has fully implemented OpenMP 4.5](https://clang.llvm.org/docs/OpenMPSupport.html), which includes the uniform keyword when declaring a function for SIMD usage. I thought the same for flang as well; [see 2.82 here](https://flang.llvm.org/docs/OpenMP-4.5-grammar.html). However, when I use the clang testbeds on rhub to test adding SIMD constructs to the [Delaporte](https://github.com/aadler/Delaporte) package, versions [17](https://github.com/aadler/Delaporte/actions/runs/9441435213/job/26002151041), [18](https://github.com/aadler/Delaporte/actions/runs/9441435213/job/26002151130), and [19](https://github.com/aadler/Delaporte/actions/runs/9441435213/job/26002151209) all return "Internal: no symbol found" and stop compilation upon seeing that clause. Could this be a problem with how rhub has set up its testbeds? Is OpenMP 4.5 not fully implemented in flang? Or have I made an error. The package compiles with [gcc](https://github.com/aadler/Delaporte/actions/runs/9441368338) and [intel](https://github.com/aadler/Delaporte/actions/runs/9441435213/job/26002151283), so I believe the code is correct. Thank you.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8Vc2O2zYQfhr6MljBoiTbOvgQxxDqQ5CgyQtQ5EhiliJV_thwn74YypsfdJECRbcnLdYk5_ubGRGCHi3ikTUn1pw3IsXJ-aMQyqDf9E7djxcQizNu1H8iaAtCXYWVCHqAOOkAOoB1EeKEsHi3oIcr2oQwOL8e-CNhiN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