[libcxx-commits] [clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)
Aaron Ballman via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 10 04:57:12 PDT 2025
================
@@ -59,7 +59,7 @@ constexpr bool test() {
{
// bidi
- int buffer[2] = {1, 2};
+ int buffer[3] = {1, 2, 3};
----------------
AaronBallman wrote:
Thanks! I kind of figured that was the case, but it wasn't clear whether the test should change like this or not.
@ldionne @philnik777 do you want the test to change to skip the out of bounds read or do you want the test to change to catch the diagnostic?
https://github.com/llvm/llvm-project/pull/143667
More information about the libcxx-commits
mailing list