[Bug tree-optimization/121755] [14/15/16/17 Regression] ice in lower_bound, at value-range.h:619 with -ffinite-math-only but Nan in src

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 1 23:19:55 GMT 2026


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #6 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Kael Franco from comment #5)
> (In reply to Drea Pinski from comment #3)
> > Reduced testcase:
> > ```
> > double f(double a) {
> >   double b = __builtin_nan("");
> >   b = a < b ? a : b;
> >   return b;
> > }
> > ```
> 
> r14-2699-g9f8f37f5490076

If it was caused by that commit, then a gimple testcase might produce it
further back.


More information about the Gcc-bugs mailing list