[llvm-bugs] [Bug 46324] New: Clang incorrectly accept blocks as parameters

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 15 03:45:52 PDT 2020


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

            Bug ID: 46324
           Summary: Clang incorrectly accept blocks as parameters
           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

After https://github.com/KhronosGroup/OpenCL-Docs/issues/54 clang should reject
blocks as parameters of functions, kernels or other blocks.

However, calng still accepts it: https://godbolt.org/z/HDJKwf

-- 
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/20200615/0ff7cfa0/attachment.html>


More information about the llvm-bugs mailing list