https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104475
--- Comment #25 from Jason Merrill <jason at gcc dot gnu.org> --- This was clarified for C++ last year by http://wg21.link/cwg2535 I notice that C warn_for_null_address also warns about &p->mem; I don't know where that is justified in the C standard.