https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126242
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |roger at
nextmovesoftware dot com
Last reconfirmed| |2026-07-13
--- Comment #1 from Roger Sayle <roger at nextmovesoftware dot com> ---
Created attachment 65035
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65035&action=edit
proposed patch
I'm bootstrapping and regression testing the attached patch. The problem is
that the value range may be uninitialized at the point lower_bound is called.
The proposed solution is to both always attempt to initialize the range, and to
check that the range is not undefined before using it.