Array decomposition fix.
authorJason Merrill <jason@redhat.com>
Thu, 19 Jan 2017 15:59:04 +0000 (10:59 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Jan 2017 15:59:04 +0000 (10:59 -0500)
commita08895999d4a0d4b23b9b3debd08257e6c8122ab
tree3a9f3941a9e336b00f7aaed2bc0405740119080c
parentb32e85fa42678b061f30fa6fc52e0713d980a6df
Array decomposition fix.

* decl.c (check_initializer): Always use build_aggr_init for array
decomposition.

From-SVN: r244639
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/decomp21.C [new file with mode: 0644]