https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64142

            Bug ID: 64142
           Summary: Add option, -felide-copies
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: r.p.nicholl at gmail dot com

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64141

Very simply, when you copy from a value, and the compiler can prove that this
is the last use of the value before it goes out of scope, then the compiler
should change this to a move operation.

Reply via email to