[Bug c++/59926] Remove temporary move constructor before move assignment

2014-01-23 Thread arnoux123 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59926 --- Comment #2 from Patrick Arnoux --- (In reply to Jonathan Wakely from comment #1) > This looks like PR 57176 Thank you for the reference to PR 57676. Delving into this a bit further, I found the following: Derived f(Derived d) { return (d) ;

[Bug c++/59926] New: Remove temporary move constructor before move assignment

2014-01-23 Thread arnoux123 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arnoux123 at gmail dot com When returning an rvalue from a function, the compiler creates a temporary using "move constructor" before doing a "move assignment" to the o