https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127969
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2026-10-17
Status|UNCONFIRMED |NEW
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. r13-469-g9a53101caadae1 added the match pattern which is matching
here.
But fold-const.cc has being doing the same thing for ever since at least GCC
4.4.7.
That is:
```
_Decimal64 f(_Decimal64 x) {
return x == 1.0dd ? x : 1.0dd;
}
```
Will always just return `1.0dd`.