<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 - Openmp test Segmentation fault in in clang::CanonicalDeclPtr<clang::Decl>::operator clang::Decl const* (this=0x10f900543)"
href="https://bugs.llvm.org/show_bug.cgi?id=45987">45987</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Openmp test Segmentation fault in in clang::CanonicalDeclPtr<clang::Decl>::operator clang::Decl const* (this=0x10f900543)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>OpenMP
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jennifer.yu@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>class B {
public:
void barB(int *isHost) {
#pragma omp target map(tofrom: isHost)
{
*isHost = omp_is_initial_device();
}
}
};
class A : public B {
public:
void barA(int *isHost) {
#pragma omp target map(tofrom: isHost)
{
barB(isHost);
}
}
};
clang -cc1 -fopenmp j.cpp
PLEASE submit a bug report to
<a href="https://software.intel.com/en-us/support/priority-support">https://software.intel.com/en-us/support/priority-support</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -cc1 -fopenmp j.cpp
1. <eof> parser at end of file
...
This failed after change set:
2c31aa2de13a23a00ced87123b92e905f2929c7b fail
Author: Yaxun (Sam) Liu <<a href="mailto:yaxun.liu@amd.com">yaxun.liu@amd.com</a>>
Date: Wed Apr 1 23:26:56 2020 -0400
Speed up deferred diagnostic emitter</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>