]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/49267 (Ambiguity with conversion functions "T&" and "T&&", initializing...
authorJason Merrill <jason@redhat.com>
Mon, 5 Sep 2011 04:33:48 +0000 (00:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 5 Sep 2011 04:33:48 +0000 (00:33 -0400)
commit0ad2cde83d102278cc285ca312747334d3616e31
tree5625d935704f1dfefa35c0f60dbbe42c2e8b06ad
parentfd3faf2b21c97982448edb0aa47092759a3d0b33
re PR c++/49267 (Ambiguity with conversion functions "T&" and "T&&", initializing a "T&&")

PR c++/49267
PR c++/49458
DR 1328
* call.c (reference_binding): Set rvaluedness_matches_p properly
for reference to function conversion ops.
(compare_ics): Adjust.

From-SVN: r178520
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-conv1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/rv-func3.C [new file with mode: 0644]