https://llvm.org/bugs/show_bug.cgi?id=26482
Bug ID: 26482 Summary: CUDA support for __global__ lambdas Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: justin.le...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified The following code should compile (and generate a kernel lambda we can invoke). void foo() { auto x = []()__global__ { }; } Instead it gives the following error: test.cu:2:15: error: kernel function type '<dependent type> () const' must have void return type auto x = [] () __global__ { }; -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs