<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 - omp critical clause does not allow optional name argument"
href="https://bugs.llvm.org/show_bug.cgi?id=48145">48145</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>omp critical clause does not allow optional name argument
</td>
</tr>
<tr>
<th>Product</th>
<td>flang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Fortran IR
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>naromero@anl.gov
</td>
</tr>
<tr>
<th>CC</th>
<td>David.Truby@arm.com, eric.schweitz@pgroup.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24147" name="attach_24147" title="omp critical clause with name argument">attachment 24147</a> <a href="attachment.cgi?id=24147&action=edit" title="omp critical clause with name argument">[details]</a></span>
omp critical clause with name argument
This reduced test case compiles with gfortran and ifort.
The optional [name] argument on the omp critical clause is not accepted by the
Flang front-end.
[naromero@naromero-desktop bugs]$ flang -c -fopenmp omp_critical.F90
omp_critical.F90:5:19: error: Internal: no symbol found for 'foo'
!$OMP CRITICAL (foo)
^^^
omp_critical.F90:7:23: error: Internal: no symbol found for 'foo'
!$OMP END CRITICAL (foo)</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>