https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 98646, which changed state.
Bug 98646 Summary: [11 Regression] A static_cast confuses -Wnonnull, causing false positives https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98646 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED