re PR c++/65815 (brace elision doesn't work in NSDMI)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 9 Jun 2015 14:59:08 +0000 (14:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 9 Jun 2015 14:59:08 +0000 (14:59 +0000)
commitebcf592c841f47aa38ce0a9d95b4f04af975b0ac
tree24ff899bb2363b98e2d5dd7f473d28c8b6cd0906
parenta0e4b207defe4bb8844f86ebab30aa2ca8de25d1
re PR c++/65815 (brace elision doesn't work in NSDMI)

/cp
2015-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65815
* typeck2.c (digest_nsdmi_init): On aggregates use reshape_init.
* init.c (expand_default_init): Likewise.

/testsuite
2015-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65815
* g++.dg/cpp0x/nsdmi-aggr1.C: New.
* g++.dg/cpp0x/mem-init-aggr1.C: Likewise.

From-SVN: r224286
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/mem-init-aggr1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nsdmi-aggr1.C [new file with mode: 0644]