https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 99251, which changed state.
Bug 99251 Summary: [11 Regression] inconsistent -Wnonnull warning behaviour with dynamic_cast https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99251 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED