[clang] [clang][SYCL] Diagnose reference kernel parameters (PR #192957)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 08:48:47 PDT 2026


================
@@ -11802,6 +11802,12 @@ def err_record_with_pointers_kernel_param : Error<
   "%select{struct|union}0 kernel parameters may not contain pointers">;
 def note_within_field_of_type : Note<
   "within field of type %0 declared here">;
+def note_within_capture : Note<
+  "within capture %0 of lambda expression here">;
+def note_within_base_of_type : Note<
+  "within base of type %0 declared here">;
----------------
Fznamznon wrote:

Done in 0587689ae6a9a101472fbd14fc9e9fa15adbdceb 

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


More information about the cfe-commits mailing list