haoNoQ wrote: We will need a new warning text here. "To preserve bounds information" isn't our goal; the traditional C array already preserves bounds information as part of the type. Theoretically, we could teach the compiler to harden all raw C array operations without converting it to `std::array`; the bounds information is already there. The message should say that `std::array` is beneficial because it takes advantage of *library*-level hardening.
https://github.com/llvm/llvm-project/pull/68037 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
