re PR c++/81055 (ICE with invalid initializer for array new)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 10 Jan 2018 16:37:22 +0000 (16:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 10 Jan 2018 16:37:22 +0000 (16:37 +0000)
commit143aa5cc4ae329f6f0720d091569c71e1fc8db73
tree7260717859d12b7d4482f13fbc5a0913db71b05c
parent389578d7a660986712eefc1785c9278d3457cd7a
re PR c++/81055 (ICE with invalid initializer for array new)

/cp
2018-01-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/81055
* init.c (build_vec_init): Avoid building an INIT_EXPR with
error_mark_node as second argument.

/testsuite
2018-01-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/81055
* g++.dg/cpp0x/new2.C: New.

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