https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125298
--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Thanks Andrew and Aldy. I could work around this in ana::constant_svalue::maybe_get_value_range_1 by specialcasing NaN values, but would it be better to have something like a: value_range::set_singleton (tree cst); and presumably a new vfunc in vrange and its subclasses: virtual void set_singleton (tree cst) = 0; ??? Note that value_range already has a ctor taking a single tree referring to a *type* rather than a constant, so we could have: static value_range from_singleton (tree cst); which could be used to make ana::constant_svalue::maybe_get_value_range_1's implementation something like: out = value_range::from_singleton (m_cst_expr); return true; That said, I now see that frange::internal_singleton_p's comment notes that a "NAN can never be a singleton", which means that my idea of a singleton seems to be different from your idea of a singleton. So maybe I should just work around this in the analyzer? (probably safer in stage 3, too) Thoughts?
