[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-24 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #4 from TC ---

[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-24 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 --- Comment #3 from tower120 --- But wait, we talk about move constructor. But this is a template class. Template class can not have move constructor at all.

[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-24 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 --- Comment #2 from tower120 --- Well ok, but what about this? http://coliru.stacked-crooked.com/a/e3ce8882c68dbef2 Why it copy with wrong number of argument?

[Bug c++/61892] RVO not occurs with constructor with universal reference arguments

2014-07-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892 --- Comment #1 from Jonathan Wakely --- (In reply to tower120 from comment #0) > I'm not sure that this is bug. But this is strange behavior, if you ask me. GCC's behaviour looks correct to me. If it looks strange to you it's because you have an