DR 1579 PR c++/58051
authorJonathan Wakely <jwakely@redhat.com>
Sat, 28 Jun 2014 07:45:27 +0000 (08:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 28 Jun 2014 07:45:27 +0000 (08:45 +0100)
commitfb682f9458c6cf421e11380f5d8b97393feb0bc0
tree593275776306dbd6a9d45a4e0b3bc6778b11fe9a
parentc02e1851747b407efc2600cb2a2b35bf5d68efcd
DR 1579 PR c++/58051

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.

From-SVN: r212099
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/elision_conv.C [new file with mode: 0644]