https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 96695, which changed state.
Bug 96695 Summary: Failure to optimize combination of pointer comparison to nullptr and another pointer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED