================ @@ -2092,6 +2092,10 @@ void Sema::CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType, } } + if (SrcTy->isTemplateTypeParmType() || DestTy->isTemplateTypeParmType()) { ---------------- sdkrystian wrote:
This should probably be`if (SrcTy->isDependentType() || DestTy->isDependentType())`. Otherwise we will continue to warn for the following: ```cpp template<typename T, typename U> void f(T** x) { *reinterpret_cast<U**>(x); } ``` https://github.com/llvm/llvm-project/pull/109430 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits