]> gcc.gnu.org Git - gcc.git/commit
c++: loop through array CONSTRUCTOR
authorJason Merrill <jason@redhat.com>
Tue, 20 Sep 2022 20:06:26 +0000 (16:06 -0400)
committerJason Merrill <jason@redhat.com>
Sat, 1 Oct 2022 03:45:08 +0000 (23:45 -0400)
commitdd9c8f644f0f1ac2000108ac369b991664946304
tree2800429f8d45544895f10aac2254578d2f84ee1f
parentf8cb417d6a4e2912d15a6d8bdffd1548cc649b49
c++: loop through array CONSTRUCTOR

I noticed that we were ignoring all the special rules for when to use a
simple INIT_EXPR for array initialization from a CONSTRUCTOR, because
split_nonconstant_init_1 was also passing 1 to the from_array parameter.
Arguably that's the real bug, but I think we can be flexible.

The test that I noticed this with no longer fails without it.

gcc/cp/ChangeLog:

* init.cc (build_vec_init): Clear from_array for CONSTRUCTOR
initializer.
gcc/cp/init.cc
This page took 0.060886 seconds and 6 git commands to generate.