re PR c++/84632 (internal compiler error: tree check: expected record_type or union_t...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 27 Mar 2018 06:52:04 +0000 (06:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 27 Mar 2018 06:52:04 +0000 (06:52 +0000)
commite278212eeea4f57d8478bf5c6be05fd7bdb2dc8e
tree62c90d8b8bc9300030a7e3c47be7ffb35d7c1441
parent74d2d97382ddfec2fd51c6a90950cf29c3ba9fd5
re PR c++/84632 (internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in reduced_constant_expression_p, at cp/constexpr.c:1778)

/cp
2018-03-27  Paolo Carlini  <paolo.carlini@oracle.com>
    Jason Merrill  <jason@redhat.com>

PR c++/84632
* init.c (build_aggr_init): When initializing from array,
reject anything but CONSTRUCTORs and TARGET_EXPRs.
(build_vec_init): Handle separately ARRAY_TYPEs.

/testsuite
2018-03-27  Paolo Carlini  <paolo.carlini@oracle.com>
    Jason Merrill  <jason@redhat.com>

PR c++/84632
* g++.dg/init/array49.C: New.
* g++.dg/torture/pr70499.C: Adjust.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r258870
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/array49.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr70499.C