]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/48113 ([C++0x] bind with tuple argument fails)
authorJason Merrill <jason@redhat.com>
Wed, 16 Mar 2011 20:03:56 +0000 (16:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Mar 2011 20:03:56 +0000 (16:03 -0400)
commitf8f122781fa0c372ec99151f6584f2678ff4e0fd
tree95b9109a4d887acbe3edbcfb522799811fb9b98e
parent85a273bae4165216919c029f0dfa28ca5800aa23
re PR c++/48113 ([C++0x] bind with tuple argument fails)

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.

From-SVN: r171067
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist38.C
gcc/testsuite/g++.dg/cpp0x/pr45908.C
gcc/testsuite/g++.dg/cpp0x/sfinae6.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.jason/conversion11.C
gcc/testsuite/g++.old-deja/g++.law/arg11.C