================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to