<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - '#pragma omp taskloop' causes front end crash for clang"
href="https://bugs.llvm.org/show_bug.cgi?id=47999">47999</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>'#pragma omp taskloop' causes front end crash for clang
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cade@utk.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24110" name="attach_24110" title="Tarfile archive of the files that clang recommended be uploaded">attachment 24110</a> <a href="attachment.cgi?id=24110&action=edit" title="Tarfile archive of the files that clang recommended be uploaded">[details]</a></span>
Tarfile archive of the files that clang recommended be uploaded
I'm not sure whether to file this bug under clang as the frontend, or as OpenMP
-- it is a problem with the clang frontend parsing OpenMP constructs,
particularly the construct:
```
#pragma omp taskloop untied shared(barrier) \
num_tasks(num_panel_threads) \
priority(2)
```
The compiler just crashes, dumps a large stack trace, and says to report it
here. I have attached the files which it recommends as a tarfile to this
report.
I have isolated it to the above OpenMP pragma, because substituting it with
'#pragma omp parallel for ...' works without crashing.
Extra data:
```
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0
(/data/jenkins_workspace/centos_pipeline_job_3.7/rocm-rel-3.7/rocm-3.7-20-20200817/7.7/external/llvm-project/clang
ee4e4ebbadcc8ea14ce99e34ed31ab31e94827ac)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-3.7.0/llvm/bin
```
As you can see, this was a version of clang bundled with the ROCm platform (I
was using hipcc at the time).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>