[llvm-bugs] [Bug 48099] New: [C++] Add extra diagnostics for kernel argument types.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 6 05:24:09 PST 2020


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

            Bug ID: 48099
           Summary: [C++] Add extra diagnostics for kernel argument types.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            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

Clang doesn't diagnose the following invalid use cases for kernel arguments:
- Types passed by pointer or reference must be standard layout types.
- Types passed by value must be POD types.

See examples: https://godbolt.org/z/8b9oeP

-- 
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/20201106/60de459d/attachment.html>


More information about the llvm-bugs mailing list