https://bugs.llvm.org/show_bug.cgi?id=41008
Bug ID: 41008
Summary: restrict keyword not accepted with -cl-std=c++
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: kevin.pe...@arm.com
CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org
Trying to compile the following test program:
-------------------------------------------------------
kernel void test(__global int* restrict ptr)
{
}
-------------------------------------------------------
with the following command line (rev 355676):
clang -cc1 -triple spir64-unknown-unknown -emit-llvm -x cl -cl-std=c++ test.cl
leads to the following error:
-------------------------------------------------------
test.cl:2:41: error: expected ')'
kernel void test(__global int* restrict ptr)
^
test.cl:2:17: note: to match this '('
kernel void test(__global int* restrict ptr)
^
1 error generated.
-------------------------------------------------------
--
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