re PR c++/50512 (surprising change in overloading resolution)
authorJason Merrill <jason@redhat.com>
Mon, 26 Sep 2011 17:55:04 +0000 (13:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 26 Sep 2011 17:55:04 +0000 (13:55 -0400)
commit6cb1ef51438f731064431977ca56f7db598409d1
tree8d459f359d524e6cbe9c6f0cdf60a67a3a1a398d
parent31fd727b4d33fd4c9814e7796e5770e7643dc7c4
re PR c++/50512 (surprising change in overloading resolution)

PR c++/50512
* call.c (compare_ics): Only consider rvaluedness_matches_p
if the target type is the same or it too differs in rvalueness.

From-SVN: r179208
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/rvalue3.C [new file with mode: 0644]