[Bug c++/53637] NRVO not applied where there are two different variables involved

2023-06-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #10 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:28db36e2cfca1b7106adc8d371600fa3a325c4e2 commit r14-1624-g28db36e2cfca1b7106adc8d371600fa3a325c4e2 Author: Jason Merrill Date: We

[Bug c++/53637] NRVO not applied where there are two different variables involved

2021-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2015-02-0

[Bug c++/53637] NRVO not applied where there are two different variables involved

2019-05-29 Thread trashyankes at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 trashyankes at wp dot pl changed: What|Removed |Added CC||trashyankes at wp dot pl --- C

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-03-08 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #8 from TC --- The standard specifies when copy elision is allowed (http://eel.is/c++draft/class.copy#31). "return param ? a : b;" is not one of them. "param ? a : b" is hardly "the name of a non-volatile automatic object..."

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-03-08 Thread thomas.br...@virtuell-zuhause.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #7 from Thomas Braun --- > The three cases (L, P, R) where GCC is "better" is actually non-conforming. Could you elaborate on that? For example case L is: X nrvo_two_different_tern() { trace t("nrvo_two_different_tern"); const

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-03-07 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #6 from TC ---

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-02-29 Thread marc at kdab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #5 from marc at kdab dot com --- You have a very narrow test of NRVO. You're using a completely transparent type, though I give you that defining the copy and move ctors in a separate TU does not change the outcome. At some point I'l

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-02-29 Thread thomas.br...@virtuell-zuhause.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #4 from Thomas Braun --- (I'm no gcc dev at all) In general gcc is much better in doing NRVO/URVO than other compilers according to my analysis [1]. So maybe the competitors need to get better first ;) [1]: http://www.byte-physics.d

[Bug c++/53637] NRVO not applied where there are two different variables involved

2016-02-29 Thread marc at kdab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 --- Comment #3 from marc at kdab dot com --- This really should be top priority. But no comment on it for almost three years by GCC devs.

[Bug c++/53637] NRVO not applied where there are two different variables involved

2015-02-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|