[llvm-bugs] [Bug 42385] New: Correctly deduce address space of reference to array

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 25 10:03:09 PDT 2019


            Bug ID: 42385
           Summary: Correctly deduce address space of reference to array
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: drohr at jwdt.org
                CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org

The following code

void t(const float (&fYZ)[2])


__kernel void test()
    __local float x[2];

fails to compile with

test.cl:19:5: error: no matching function for call to 't'
test.cl:10:6: note: candidate function not viable: address space mismatch in
1st argument ('__local float [2]'), parameter type must be 'const float (&)[2]'
void t(const float fX, const float (&fYZ)[2], int ly)

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/20190625/4f780437/attachment.html>

More information about the llvm-bugs mailing list