[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 15:01:48 PDT 2026


PrabbyDD wrote:

I am still trying to fix `array-compare-template.cpp`. Most of my `static_assert` clauses are firing, but i noticed the one for the `<=>` operator is passing. I am digging through `CheckCompareOperands()` to see why this is the case. But it seems to me that the array comparison is in the `requires` expressions are considered valid, which shouldn't happen. 

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


More information about the cfe-commits mailing list