https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 98450, which changed state.
Bug 98450 Summary: Inconsistent Wunused-variable warning for std::array https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED