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: unassignedclangb...@nondot.org
          Reporter: anastasia.stul...@arm.com
                CC: anastasia.stul...@arm.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to