================
@@ -15,6 +17,9 @@
return v;
}
+using FP = int (*)(int, ...);
+[[clang::sycl_external]] FP g() { return f; }
----------------
tahonermann wrote:
Good idea taking the address of the function since calling it would have
generated an error. Such a good idea actually, that I'm now wondering if
dropping the attribute is conforming behavior since such ODR-use doesn't
involve a call! I'm still content to drop the attribute as this PR does until
someone comes forth with good motivation for allowing `SYCL_EXTERNAL` to be
used with a variadic function and where all ODR-uses don't involve calls; such
use cases would be quite interesting! :)
https://github.com/llvm/llvm-project/pull/216393
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits