https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58055 Bug 58055 depends on bug 91217, which changed state.
Bug 91217 Summary: [9 Regression] Returning std::array from lambda results in an extra copy step on return https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91217 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED