OSDN Git Service

PR c++/40308
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jun 2009 17:02:38 +0000 (17:02 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jun 2009 17:02:38 +0000 (17:02 +0000)
commitce734c959c94df01ca1da332ec4e266dfca8cfc6
treea4bc703b59430cc1c6271ad1407d17d48be44c0d
parent6b8740d8d87ebbb17e88bd55cccee5d6ca047061
PR c++/40308
PR c++/40311
* typeck.c (cp_build_modify_expr): Always pass init-lists to the
conversion code.
* call.c (implicit_conversion): Allow init-list conversion to scalar
during direct-initialization, too.  Mark the conversion bad if it
has too many levels of braces.
(convert_like_real): And give a helpful error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148089 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist13.C
gcc/testsuite/g++.dg/cpp0x/initlist18.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist19.C [new file with mode: 0644]