c++: Revert unnecessary parts of fix for [PR90996]
authorPatrick Palka <ppalka@redhat.com>
Fri, 15 May 2020 18:50:17 +0000 (14:50 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 15 May 2020 18:50:17 +0000 (14:50 -0400)
commit289fbbe75f6d1c69605fcfde769ac46944c14a4a
tree05140a4e596705204fd2404eac3bf4503d70a576
parentcda6396a1b6e6bba2a3b0847931567c3458f2184
c++: Revert unnecessary parts of fix for [PR90996]

The process_init_constructor_array part of my PR90996 patch turns out to
be neither necessary nor sufficient to make the pr90996.C testcase work,
and I wasn't able to come up with a testcase that demonstrates this part
is ever necessary.

gcc/cp/ChangeLog:

Revert:

2020-04-07  Patrick Palka  <ppalka@redhat.com>

PR c++/90996
* typeck2.c (process_init_constructor_array): Propagate
CONSTRUCTOR_PLACEHOLDER_BOUNDARY up from each element
initializer to the array initializer.

gcc/testsuite/ChangeLog:

PR c++/90996
* g++.dg/cpp1y/pr90996.C: Turn into execution test to verify
that each PLACEHOLDER_EXPR gets correctly resolved.
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr90996.C