https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90996

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
                 CC|                            |jason at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'm afraid I'm lost here.
replace_placeholders is called here on the outer CONSTRUCTOR, where it doesn't
dive into the nested CONSTRUCTOR_PLACEHOLDER_BOUNDARY while previously it did,
and then once again with obj being ARRAY_REF c[0].b[0] which has int type, but
the PLACEHOLDER_EXPR has type S for some reason.
I think some replace_placeholders call somewhere where we process the inner
constructor is needed, i.e. initializer for c[0] rather than whole c, but have
no idea where that should be.  The first replace_placeholders call is from
store_init_value on the CONTRUCTOR for the whole c and the other is from
cp_gimplify_init_expr.  Jason, could you please have a look?

Reply via email to