[llvm-bugs] [Bug 41008] [C++] restrict keyword not accepted

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 14 07:10:25 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=41008

Anastasia Stulova <anastasia.stulova at arm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #6 from Anastasia Stulova <anastasia.stulova at arm.com> ---
Restrict is not supported by C++ for OpenCL v1.0, see section 2.2.1.3
(https://github.com/KhronosGroup/OpenCL-Docs/releases/tag/cxxforopencl-v1.0-r1)

It is possible that some other versions of the language will relax it however
it doesn't seem easy at the moment with the C++ position on this. It is very
easy to work around the issue by mapping to __restrict for use cases that
guarantee to work correctly.

-- 
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/20210114/cc8fe7cf/attachment.html>


More information about the llvm-bugs mailing list