OSDN Git Service

PR c++/40689
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jul 2009 19:19:03 +0000 (19:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jul 2009 19:19:03 +0000 (19:19 +0000)
commita8fe6bf41bf0280fc339f79aa0d2073363693fe4
tree43c0739a8937332d11e29f2a24b12fe31e9a6a6d
parentce663cb5887662f0a8a9a3d8b8a25ab70a8697c5
PR c++/40689
* init.c (build_new_1): Handle initializer list as array initializer.
(build_vec_init): Likewise.
* typeck.c (cp_build_modify_expr): Likewise.
* typeck2.c (process_init_constructor_array): Error rather than abort
if too many initializers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149533 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist21.C [new file with mode: 0644]