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

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 12:47:39 PST 2025


yxsamliu wrote:

I reverted my PR since it caused build failures in our internal CI because a ROCm library `rocRand` has already used device and host attributes with deduction guide:

https://github.com/ROCm/rocm-libraries/blob/develop/projects/rocrand/library/src/rng/utils/cpp_utils.hpp#L249

I think this is probably a tip of iceberg, so it seems we need to change the error to a warning.  

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


More information about the cfe-commits mailing list