PR c++/78345 - ICE initializing array from lambda.
authorJason Merrill <jason@redhat.com>
Fri, 17 Mar 2017 18:56:22 +0000 (14:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 17 Mar 2017 18:56:22 +0000 (14:56 -0400)
commitd1a73b0baead836a8d813a6a63459ef87a270bba
treeae76f8effa7e1594edcee55fbfb2ef0d08794b32
parent3b82a32c3e673743f6bbb911efb8be77a7bb1255
PR c++/78345 - ICE initializing array from lambda.

* init.c (build_aggr_init): Check array initializer.
(build_vec_init): Check the type of a CONSTRUCTOR.

From-SVN: r246244
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/init/array48.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr70499.C