https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116823
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> Here is a reduced testcase for fold-const.cc case:
> ```
> struct s2
> {
> int i;
> s2(const int &a) : i (a) {}
> };
>
>
> int h(s2 b);
>
> int g(int l, int r)
> {
> return h(l > r ? l : r);
> }
> ```
>
> Which shows up since r6-68-g58cc255ca031b2 which added clobbers in front of
> the constructor. I will add this as a testcase as soon as my testing is
> finished.
This case was fixed differently by no longer emitting `*this =
{CLOBBER(bob)};`. Which was r16-4212-gf256a13f8aed83 . I have not looked to see
fixes the fold-const issue but I suspect it does.
I am still going to resubmit this patch once I retest it (even though it was
approved before).