================
@@ -13279,6 +13284,18 @@ def err_sycl_entry_point_return_type : Error<
 def err_sycl_entry_point_deduced_return_type : Error<
   "the %0 attribute only applies to functions with a non-deduced 'void' return"
   " type">;
+def note_sycl_runtime_defect : Note<
+  "this error is due to a defect in SYCL runtime header files; please report"
----------------
AaronBallman wrote:

I think the tone of the diagnostic is reasonable as-is, but am not opposed to 
wording changes either. The point is: if you see this diagnostic, you need to 
tell your SYCL runtime vendor about it because it's their bug, not a bug with 
user code or Clang. So in theory, nobody should see this because we all write 
perfect code on the first try.

We could flip the wording so it's not "the headers are wrong, please report 
this to" but is instead "your code is fine, but please report this to"?

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