http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48113
--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 20:03:07 UTC --- Author: jason Date: Wed Mar 16 20:03:01 2011 New Revision: 171064 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171064 Log: PR c++/48113 * typeck.c (convert_for_initialization): Use perform_implicit_conversion_flags. * call.c (standard_conversion): If LOOKUP_PREFER_RVALUE, set rvaluedness_matches_p on ck_rvalue. (convert_like_real) [ck_rvalue]: And restore it here. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/sfinae6.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/call.c branches/gcc-4_6-branch/gcc/cp/typeck.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/initlist38.C branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/pr45908.C branches/gcc-4_6-branch/gcc/testsuite/g++.old-deja/g++.jason/conversion11.C branches/gcc-4_6-branch/gcc/testsuite/g++.old-deja/g++.law/arg11.C