https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95507 Bug 95507 depends on bug 102136, which changed state.
Bug 102136 Summary: bogus warnings for function calls in unevaluated contexts https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102136 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE