[clang] [clang] Fix false warning on reinterpret_casting unknown template type (PR #109430)

Arseniy Zaostrovnykh via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 00:34:34 PDT 2024


================
@@ -2092,6 +2092,10 @@ void Sema::CheckCompatibleReinterpretCast(QualType SrcType, QualType DestType,
     }
   }
 
+  if (SrcTy->isTemplateTypeParmType() || DestTy->isTemplateTypeParmType()) {
----------------
necto wrote:

Good point
Fixed in 541e0af03998

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


More information about the cfe-commits mailing list