[clang] [CUDA][HIP] Fix CTAD for host/device constructors (PR #168711)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 26 06:26:45 PST 2025


================
@@ -2769,6 +2769,9 @@ def err_deduction_guide_name_not_class_template : Error<
   "cannot specify deduction guide for "
   "%select{<error>|function template|variable template|alias template|"
   "template template parameter|concept|dependent template name}0 %1">;
+def err_deduction_guide_target_attr : Error<
+  "deduction guides are implicitly enabled for both host and device in "
+  "CUDA/HIP; explicit CUDA/HIP target attributes are not allowed">;
----------------
yxsamliu wrote:

will do

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


More information about the cfe-commits mailing list