re PR c++/57402 (ICE: in make_decl_rtl, at varasm.c:1147 when initializing variable...
authorJason Merrill <jason@redhat.com>
Sat, 13 Jul 2013 23:10:24 +0000 (19:10 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 13 Jul 2013 23:10:24 +0000 (19:10 -0400)
commit16b53405ad2baba783cf7ecf34a623fd64db2dda
tree1dccabcb4f30ae988a32feff076c59c480009784
parent26d40c3d4bd444bcd3dc2d44d1a405dfb8db07ec
re PR c++/57402 (ICE: in make_decl_rtl, at varasm.c:1147 when initializing variable-sized array)

PR c++/57402
* init.c (build_vec_init): Use {} for arrays of class type.
(build_vec_delete): Don't take the address of the array.

From-SVN: r200939
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/cpp0x/defaulted45.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/vla-initlist1.C [new file with mode: 0644]