[clang] [Clang] Be less strict about diagnosing null pointer dereference. (PR #149648)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 19 16:21:04 PDT 2025


================
@@ -1445,3 +1445,8 @@ static_assert(test_member_null(), "");
 
 }
 }
+
+namespace GH149500 {
+  unsigned int * p = &(*(unsigned int *)0x400);
+  static const void *q = &(*(const struct sysrq_key_op *)0);
----------------
shafik wrote:

Maybe also `nullptr` test?

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


More information about the cfe-commits mailing list