[llvm-bugs] [Bug 41008] New: restrict keyword not accepted with -cl-std=c++
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 8 03:42:39 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: kevin.petit at arm.com
CC: anastasia.stulova at arm.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190308/0f27e63b/attachment.html>
More information about the llvm-bugs
mailing list