This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50512] surprising change in overloading resolution
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Sep 2011 17:55:12 +0000
- Subject: [Bug c++/50512] surprising change in overloading resolution
- Auto-submitted: auto-generated
- References: <bug-50512-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50512
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-26 17:55:12 UTC ---
Author: jason
Date: Mon Sep 26 17:55:04 2011
New Revision: 179208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179208
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/overload/rvalue3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog