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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
Last reconfirmed|2015-02-0
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
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..."
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
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 ---
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
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
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53637
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
10 matches
Mail list logo