https://bugs.llvm.org/show_bug.cgi?id=42385
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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
The following code
void t(const float (&fYZ)[2])
{
}
__kernel void test()
{
__local float x[2];
t(x);
}
fails to compile with
test.cl:19:5: error: no matching function for call to 't'
t(x);
^
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs