<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 - Assertion failure on openmp task with by reference array"
href="https://bugs.llvm.org/show_bug.cgi?id=37283">37283</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure on openmp task with by reference array
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zahira.ammarguellat@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following reproducer fails on an assertion on both Linux and Windows.
ksh-3.2$ cat t1.cpp
#include <stdio.h>
void traverse(int(& p)[1]) {
#pragma omp task
{
traverse(p);
}
}
int main() {
int root[1] = {1};
#pragma omp parallel
{
#pragma omp single
{
traverse(root);
}
}
}
ksh-3.2$ clang -c -fopenmp t1.cpp
Assertion failed: E && hasAggregateEvaluationKind(E->getType()) && "Invalid
aggregate expression to emit", file
D:\IUSERS\zahiraam\llorg_ws\llorg_962_2\llvm\tools\clang\lib\CodeGen\CGExprAgg.cpp,
line 1625
Wrote crash dump file
"C:\Users\zahiraam\AppData\Local\Temp\2\clang.EXE-81caa9.dmp"
LLVMSymbolizer: error reading file: PDB Error: DIA is not installed on the
system</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>