public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/110521] New: -Wanalyzer-null-dereference false nagetive with `*p = i`
@ 2023-07-02 12:43 dale.mengli.ming at proton dot me
  0 siblings, 0 replies; only message in thread
From: dale.mengli.ming at proton dot me @ 2023-07-02 12:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110521

            Bug ID: 110521
           Summary: -Wanalyzer-null-dereference false nagetive with `*p =
                    i`
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dale.mengli.ming at proton dot me
  Target Milestone: ---

Hi, in this case (https://godbolt.org/z/azzTd94hz), the `p` is a null poinetr,
but the analyzer doesn't report an NPD with it. When `int array[3] = {0, 0, 0}`
(https://godbolt.org/z/TM7Ws3Gav), the analyzer reports that.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-02 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-02 12:43 [Bug analyzer/110521] New: -Wanalyzer-null-dereference false nagetive with `*p = i` dale.mengli.ming at proton dot me

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).