https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77432
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2016-08-31 Component|c++ |middle-end Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm, there was a warning for this specific thing, I thought but I could be wrong. Maybe it only happens with optimization. Oh that is -Wnull-dereference which is slightly different, this case is when eliminating the conditional due to dereferencing rather than having a path which might deference a null pointer.