https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That IMHO bogus D.35417 = D.35181; statement comes from the inliner and it can be fixed easily: --- gcc/tree-inline.c.jj 2022-01-11 23:11:23.422275652 +0100 +++ gcc/tree-inline.c 2022-01-12 18:37:44.119950128 +0100 @@ -3608,7 +3608,7 @@ setup_one_parameter (copy_body_data *id, init_stmt = gimple_build_assign (def, rhs); } } - else + else if (!is_empty_type (TREE_TYPE (var))) init_stmt = gimple_build_assign (var, rhs); if (bb && init_stmt) which I think matches what the gimplifier does with assignments of empty type objects. Unfortunately that patch doesn't do anything with these warnings.