https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105755
--- Comment #5 from nightstrike <nightstrike at gmail dot com> --- (In reply to David Malcolm from comment #4) > Looks like this was fixed sometime in GCC 13; resolving as WORKSFORME. > > Feel free to reopen if you have a reproducer that triggers on a more recent > GCC. The testcase still fails. To be clear, I'm referring to null-deref-pr105755.c: Executing on host: /tmp/gcc/src/gcc-git/_w/gcc/xgcc -B/tmp/gcc/src/gcc-git/_w/gcc/ exceptions_enabled705865.cc -fdiagnostics-plain-output -Wno-complain-wrong-lang -S -o exceptions_enabled705865.s (timeout = 300) spawn -ignore SIGHUP /tmp/gcc/src/gcc-git/_w/gcc/xgcc -B/tmp/gcc/src/gcc-git/_w/gcc/ exceptions_enabled705865.cc -fdiagnostics-plain-output -Wno-complain-wrong-lang -S -o exceptions_enabled705865.s^M FAIL: gcc.dg/analyzer/null-deref-pr105755.c (test for excess errors) Excess errors: /tmp/gcc/src/gcc-git/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c:19:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] testcase /tmp/gcc/src/gcc-git/gcc/testsuite/gcc.dg/analyzer/analyzer.exp completed in 0 seconds With this change: --- a/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c +++ b/gcc/testsuite/gcc.dg/analyzer/null-deref-pr105755.c @@ -2,7 +2,7 @@ /* { dg-additional-options "-Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex -O2" } */ typedef long int ptrdiff_t; -typedef long int EMACS_INT; +typedef __UINTPTR_TYPE__ EMACS_INT; typedef long int intmax_t; enum Lisp_Type Then I get this: PASS: gcc.dg/analyzer/null-deref-pr105755.c (test for excess errors) If I open your godbolt links, they aren't using a Windows target compiler, so they aren't exercising an LLP64 target. Generally speaking, most of the analyzer testsuite assumes incorrect definitions of things. For instance, in the diff I just posted, you can see that the lines before and after also assume the underlying types of ptrdiff_t and intmax_t instead of using compiler builtins or just including the relevant headers. This is really needs to be fixed across the whole testsuite.