https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128916
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-11-22
Component|tree-optimization |middle-end
Ever confirmed|0 |1
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. The bug is in lowering/outlining of the assume function.
Before we had:
```
[[assume (D.3482)]]
{
{
bool iftmp.0;
if (c > 5) goto <D.3484>; else goto <D.3487>;
<D.3487>:
if (q == &x) goto <D.3484>; else goto <D.3485>;
<D.3484>:
iftmp.0 = 1;
goto <D.3486>;
<D.3485>:
iftmp.0 = 0;
<D.3486>:
D.3482 = iftmp.0;
}
}
```
But the lowering does not change it into take by reference for x.