[llvm-bugs] [Bug 50259] New: [C++4OpenCL] Address space not deduced for special members
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 7 04:08:15 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50259
Bug ID: 50259
Summary: [C++4OpenCL] Address space not deduced for special
members
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: anastasia.stulova at arm.com
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
The following bug https://bugs.llvm.org/show_bug.cgi?id=50162 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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210507/8763ceaf/attachment.html>
More information about the llvm-bugs
mailing list