summaryrefslogtreecommitdiff
path: root/libiberty/atexit.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2018-03-10 06:30:25 -0300
committerAlexandre Oliva <aoliva@redhat.com>2018-03-10 07:32:37 -0300
commitb725303da4cbcd57eb62d9c8bdc1817d666ede8a (patch)
tree388bacdf6e9506669370cee3a5c57c84a0b89d3c /libiberty/atexit.c
parent54b21b6b6c25f8fd81efc7b5b1dbd8e1a2dde120 (diff)
downloadgcc-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 'libiberty/atexit.c')
0 files changed, 0 insertions, 0 deletions