This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58051] [DR1579] No named return value optimization when returned object is implicitly converted


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58051

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Jun 28 07:45:27 2014
New Revision: 212099

URL: https://gcc.gnu.org/viewcvs?rev=212099&root=gcc&view=rev
Log:
gcc/cp:
    DR 1579
    PR c++/58051
    * typeck.c (check_return_expr): Lookup as an rvalue even when the
    types aren't the same.

gcc/testsuite:
    * g++.dg/cpp0x/elision_conv.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/elision_conv.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]