================ @@ -265,7 +265,7 @@ namespace const_modify { namespace null { constexpr int test(int *p) { - return *p = 123; // expected-note {{assignment to dereferenced null pointer}} + return *p = 123; // expected-note {{read of dereferenced null pointer}} ---------------- cor3ntin wrote:
I think we can either - say something like "access to dereferenced null pointer" - introduce a different diagnostic for this case, so we can just say "dereferencing null pointer" https://github.com/llvm/llvm-project/pull/143667 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits