[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 10 08:57:16 PST 2025


================
@@ -315,43 +315,53 @@ void SemaSYCL::CheckSYCLEntryPointFunctionDecl(FunctionDecl *FD) {
     }
   }
 
+  if (isa<CXXConstructorDecl>(FD)) {
----------------
tahonermann wrote:

We previously rejected any non-static member function and that caught constructors and destructors. We now allow non-static member functions for the express purpose of passing `this` to `sycl_kernel_launch()`, but still want to reject constructors and destructors, so diagnostics for them now require more explicit support.

https://github.com/llvm/llvm-project/pull/152403


More information about the cfe-commits mailing list