[clang] [clang] Reject array comparisons in C++26 for unknown/dependent types in templates (PR #191101)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 12:02:15 PDT 2026


================
@@ -12487,8 +12487,7 @@ static void diagnoseTautologicalComparison(Sema &S, SourceLocation Loc,
 
   QualType LHSType = LHS->getType();
   QualType RHSType = RHS->getType();
-  if (LHSType->hasFloatingRepresentation() ||
-      (LHSType->isBlockPointerType() && !BinaryOperator::isEqualityOp(Opc)) ||
+  if ((LHSType->isBlockPointerType() && !BinaryOperator::isEqualityOp(Opc)) ||
----------------
Sirraide wrote:

Why was `LHSType->hasFloatingRepresentation()` remove here?

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


More information about the cfe-commits mailing list