https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89180 Bug 89180 depends on bug 96311, which changed state.
Bug 96311 Summary: [9 Regression] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED