[clang] [clang][CUDA] Avoid ambiguity in host/device template specializations (PR #201049)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 2 05:30:49 PDT 2026


================
@@ -598,6 +598,10 @@ Improvements to Clang's diagnostics
 - Clang now rejects inline asm constraints and clobbers that contain an
   embedded null character, instead of silently truncating them. (#GH173900)
 
+- Fixed false positive for host-device ambiguities in CUDA/HIP when retrieving
+  the address of specializations of templated functions that have overloads for
+  both host and device. (#GH199299)
+
----------------
cor3ntin wrote:

This should be either in the bug fix or `CUDA Support` section (ie, a false positive is not merely an improved diagnostic). Thanks

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


More information about the cfe-commits mailing list