https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66163
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- -fsanitize=null should do exactly that.