[Bug c++/58051] [DR1579] No named return value optimization when returned object is implicitly converted
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 28 07:46:00 GMT 2014
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
More information about the Gcc-bugs
mailing list