https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58055 Bug 58055 depends on bug 96004, which changed state.
Bug 96004 Summary: Copy elision with conditional https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96004 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE