https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58055 Bug 58055 depends on bug 58050, which changed state.
Bug 58050 Summary: No return value optimization when calling static function through unnamed temporary https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58050 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED