c++: tweak PR103337 fix
authorJason Merrill <jason@redhat.com>
Wed, 23 Mar 2022 17:22:25 +0000 (13:22 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 23 Mar 2022 19:35:50 +0000 (15:35 -0400)
commit2cd0c9a5310420e1039be5e514a818b6d381d89f
tree7782ce4edc618d8699b35732840ef983f980cc61
parente8cd3edc0fc6c02a732dcecf519c22d835e5f422
c++: tweak PR103337 fix

Patrick suggested a way to implement the designated-init handling without
(temporarily) modifying the CONSTRUCTOR being reshaped.

PR c++/103337

gcc/cp/ChangeLog:

* decl.cc (reshape_single_init): New.
(reshape_init_class): Use it.
gcc/cp/decl.cc