This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49458] [C++0x] Obvious candidate for conversion to function lvalue rejected
- 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: Sat, 18 Jun 2011 05:58:43 +0000
- Subject: [Bug c++/49458] [C++0x] Obvious candidate for conversion to function lvalue rejected
- Auto-submitted: auto-generated
- References: <bug-49458-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49458
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-18 05:58:42 UTC ---
Author: jason
Date: Sat Jun 18 05:58:38 2011
New Revision: 175164
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175164
Log:
PR c++/49458
* call.c (convert_class_to_reference_1): Allow binding function
lvalue to rvalue reference.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/rv-func2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog