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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |15.0

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #10)
> Just summary now, reduced testcase in comment #6 is fixed but the original
> testcase still does not get optimized to 0.

The front-end since GCC 15 produces:
  f (TARGET_EXPR <D.14440,
{.D.14427={.D.14008={.D.13845={.D.13716={.D.13605={.D.13512={._M_u={._M_first={._M_storage=0}},
._M_index=0}}}}}}}>) >>>>>;


Which then gimplifies to:
      D.14440 = {};
      f (D.14440);

And then there is nothing to be done.

So fixed for GCC 15.

Reply via email to