[Bug c++/64142] New: Add option, -felide-copies
r.p.nicholl at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 1 17:57:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list