re PR c++/49216 ([C++0x] ICE on compiling new-expression with braced-init-list for...
authorJason Merrill <jason@redhat.com>
Tue, 21 Jun 2011 02:24:17 +0000 (22:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 21 Jun 2011 02:24:17 +0000 (22:24 -0400)
commitfe7eb484d309fefb7366b3838900e632da9dd234
tree34baaeacaa4ccbe65ec562c07c7c1a3b6fbf5f48
parent344bf2e1a23979f149b9489155dfe2ee74e38273
re PR c++/49216 ([C++0x] ICE on compiling new-expression with braced-init-list for arrays)

PR c++/49216
* init.c (build_vec_init): Don't try to use a CONSTRUCTOR when
base is a pointer.
* typeck2.c (process_init_constructor_array): Use {} for classes,
too.
* call.c (convert_like_real): Handle substitution failure.

From-SVN: r175237
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist53.C [new file with mode: 0644]