diff options
| author | Alexandre Oliva <aoliva@redhat.com> | 2018-03-10 06:30:25 -0300 |
|---|---|---|
| committer | Alexandre Oliva <aoliva@redhat.com> | 2018-03-10 07:32:37 -0300 |
| commit | b725303da4cbcd57eb62d9c8bdc1817d666ede8a (patch) | |
| tree | 388bacdf6e9506669370cee3a5c57c84a0b89d3c /libffi/configure.host | |
| parent | 54b21b6b6c25f8fd81efc7b5b1dbd8e1a2dde120 (diff) | |
| download | gcc-aoliva/testme.tar.gz | |
[PR c++/84729] convert new init to array elt typeaoliva/testme
A parenthesized initializer is only accepted when new()ing an array in
permissive mode. We were not careful, however, to convert the
TREE_LIST initializer to the array element type in this extension.
This patch fixes it: after turning the TREE_LIST initializer to a
compound_expr, we convert it to the base type.
for gcc/cp/ChangeLog
PR c++/84729
* init.c (build_vec_init): Convert tree list to base type.
for gcc/testsuite/ChangeLog
PR c++/84729
* g++.dg/pr84729.C: New.
Diffstat (limited to 'libffi/configure.host')
0 files changed, 0 insertions, 0 deletions
