================ @@ -10274,6 +10274,11 @@ def warn_array_comparison : Warning< "to compare array addresses, use unary '+' to decay operands to pointers">, InGroup<DiagGroup<"array-compare">>; +def warn_array_comparison_cxx26 : Warning< + "comparison between two arrays compare their addresses not their contents; " ---------------- AmrDeveloper wrote:
I agree, "comparison between two arrays is ll-formed in C++26; " will be better in this case https://github.com/llvm/llvm-project/pull/118872 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits