[llvm-bugs] [Bug 41731] New: Clang should reject blocks as kernel arguments
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 3 08:05:02 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41731
Bug ID: 41731
Summary: Clang should reject blocks as kernel arguments
Product: clang
Version: trunk
Hardware: PC
OS: Linux
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
According to the latest update in spec:
https://github.com/KhronosGroup/OpenCL-Docs/issues/54
Clang should reject the following code:
int f0(global int * i, int (^const bl)(global int * i))
{
return bl(i);
}
int (^bl0)(global int * i) = ^(global int * i){ return *i * 2; };
kernel void f1(global int * i) {
int (^const bl1)(global int * i) = ^(global int * i){ return *i + 1; };
*i = f0(i, bl0);
*i = f0(i, bl1);
}
--
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/20190503/787da934/attachment.html>
More information about the llvm-bugs
mailing list