https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77432
--- Comment #10 from David Brown <david at westcontrol dot com> --- Sorry for the dup - I didn't find this bug in my search for "null-dereference". As far as I can see (from testing with godbolt to get multiple versions of gcc, including a near trunk build), no warning is triggered either by "-Wnull-dereference" or "-fanalyzer". My understanding is that "-fanalyzer" is not yet suitable for C++, and considerably adds to build times. Those are, I think, good reasons to aim to improve the "normal" warning -Wnull-dereference. But if "-fanalyzer" works for the approximate C subset of C++, then catching this case with "-fanalyzer" would still be a good step forward.
