<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 - [C++4OpenCL] Address space not deduced for special members"
href="https://bugs.llvm.org/show_bug.cgi?id=50259">50259</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[C++4OpenCL] Address space not deduced for special members
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OpenCL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anastasia.stulova@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>anastasia.stulova@arm.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following bug <a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - [C++4OpenCL] Problem automatically deducing reference template parameters with address spaces"
href="show_bug.cgi?id=50162">https://bugs.llvm.org/show_bug.cgi?id=50162</a> revealed issues
with incorrect address spaces for special members. When clang compiled the
attached test case there the following errors are generated:
../Merger/GPUTPCGMTrackParam.h:47:7: note: candidate function (the implicit
move assignment operator) not viable: 'this' object is in address space
'__private', but method expects object in default address space
When I dump the candidate prototype it looks as follows
CXXMethodDecl 0x563b7106a438 <../Merger/GPUTPCGMTrackParam.h:47:7> col:7
implicit constexpr operator= '__generic o2::gpu::GPUTPCGMTrackParam &(__generic
o2::gpu::GPUTPCGMTrackParam &&)' inline default trivial noexcept-unevaluated
0x563b7106a438
`-ParmVarDecl 0x563b7106a548 <col:7> col:7 '__generic
o2::gpu::GPUTPCGMTrackParam &&'
Where the address space qualifier for the method is missing</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>